dbdb228cf7
path.
16 lines
268 B
C
16 lines
268 B
C
#if defined(LIBC_RCS) && !defined(lint)
|
|
static const char rcsid[] =
|
|
"$FreeBSD$";
|
|
#endif /* LIBC_RCS and not lint */
|
|
|
|
extern const char *__progname;
|
|
|
|
void
|
|
setprogname(const char *progname)
|
|
{
|
|
char *p;
|
|
|
|
p = strrchr('/', progname);
|
|
__progname = p ? p+1 : progname;
|
|
}
|