etc/services - sync with NetBSD-8
[minix.git] / external / bsd / blacklist / port / getprogname.c
blob983d6740c88c347780e11e8c4909b647a416d35c
1 #ifdef HAVE_CONFIG_H
2 #include "config.h"
3 #endif
4 #include <string.h>
6 extern char *__progname;
8 const char *
9 getprogname(void)
11 return __progname;
14 void
15 setprogname(char *p)
17 char *q;
18 if (p == NULL)
19 return;
20 if ((q = strrchr(p, '/')) != NULL)
21 __progname = ++q;
22 else
23 __progname = p;