diff options
Diffstat (limited to 'test-progname.c')
-rw-r--r-- | test-progname.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test-progname.c b/test-progname.c new file mode 100644 index 00000000..79add7eb --- /dev/null +++ b/test-progname.c @@ -0,0 +1,9 @@ +#include <string.h> + +extern char *__progname; + +int +main(void) +{ + return !!strcmp(__progname, "test-progname"); +} |