Return to test-progname.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
version 1.1, 2015/10/11 21:12:55 | version 1.2, 2015/11/06 16:30:33 | ||
---|---|---|---|
|
|
||
#include <string.h> | #include <stdlib.h> | ||
extern char *__progname; | |||
int | int | ||
main(void) | main(void) | ||
{ | { | ||
return !!strcmp(__progname, "test-progname"); | const char * progname; | ||
progname = getprogname(); | |||
return progname == NULL; | |||
} | } |