freebsd-dev/lib/libc/gen/getprogname.c
Dima Dorfman cd18ccdc30 Introduce getprogname(3) and setprogname(3) library calls. These get
and set __progname, respectively.

Discussed on:	-arch (Feb 2001), -audit
Reviewed by:	-audit
Approved by:	kris
Obtained from:	(mostly) NetBSD
2001-05-15 23:41:01 +00:00

14 lines
209 B
C

#if defined(LIBC_RCS) && !defined(lint)
static const char rcsid[] =
"$FreeBSD$";
#endif /* LIBC_RCS and not lint */
extern const char *__progname;
const char *
getprogname(void)
{
return (__progname);
}