diff options
Diffstat (limited to 'lib/libc/gen/getprogname.c')
-rw-r--r-- | lib/libc/gen/getprogname.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/libc/gen/getprogname.c b/lib/libc/gen/getprogname.c new file mode 100644 index 0000000..7edf998 --- /dev/null +++ b/lib/libc/gen/getprogname.c @@ -0,0 +1,15 @@ +#if defined(LIBC_RCS) && !defined(lint) +static const char rcsid[] = + "$FreeBSD$"; +#endif /* LIBC_RCS and not lint */ + +#include <stdlib.h> + +extern const char *__progname; + +const char * +getprogname(void) +{ + + return (__progname); +} |