1 2 3 4 5 6 7 8 9
#include <stdlib.h> #include <errno.h> const char * getprogname(void) { return program_invocation_short_name; }