xref: /freebsd/lib/libc/gen/getprogname.c (revision 17d6c636720d00f77e5d098daf4c278f89d84f7b)
1 #if defined(LIBC_RCS) && !defined(lint)
2 static const char rcsid[] =
3   "$FreeBSD$";
4 #endif /* LIBC_RCS and not lint */
5 
6 #include <stdlib.h>
7 
8 extern const char *__progname;
9 
10 const char *
11 getprogname(void)
12 {
13 
14 	return (__progname);
15 }
16