akaros/tests/progname.c
<<
>>
Prefs
   1#define __GNU_SOURCE
   2#include <errno.h>
   3#include <stdio.h>
   4extern char *program_invocation_name;
   5extern char *program_invocation_short_name;
   6
   7int main(int argc, char **argv)
   8{
   9        printf("argc: %d, argv[0]: %s\n", argc, argv[0]);
  10        printf("program_invocation_name: %s\n", program_invocation_name);
  11        return 0;
  12}
  13