xref: /dflybsd-src/lib/libc/gen/getprogname.c (revision e59e8ef18bdf9723810566033a9f4131840281c7)
11de703daSMatthew Dillon /*
21de703daSMatthew Dillon  * $FreeBSD: src/lib/libc/gen/getprogname.c,v 1.1.2.1 2001/06/14 00:06:12 dd Exp $
3*e59e8ef1SJoerg Sonnenberger  * $DragonFly: src/lib/libc/gen/getprogname.c,v 1.3 2005/03/09 18:52:21 joerg Exp $
41de703daSMatthew Dillon  */
5984263bcSMatthew Dillon 
6*e59e8ef1SJoerg Sonnenberger #include <stdlib.h>
7*e59e8ef1SJoerg Sonnenberger 
8984263bcSMatthew Dillon extern const char *__progname;
9984263bcSMatthew Dillon 
10984263bcSMatthew Dillon const char *
11984263bcSMatthew Dillon getprogname(void)
12984263bcSMatthew Dillon {
13984263bcSMatthew Dillon 	return (__progname);
14984263bcSMatthew Dillon }
15