2
0

errno.c 477 B

1234567891011121314151617
  1. #include <errno.h>
  2. #include <stdio.h>
  3. #include "test_helpers.h"
  4. int main(int argc, char **argv) {
  5. puts(argv[0]);
  6. puts(program_invocation_name);
  7. puts(program_invocation_short_name);
  8. argv[0] = "changed to argv[0]";
  9. program_invocation_name = "changed to program_invocation_name";
  10. program_invocation_short_name = "changed to program_invocation_short_name";
  11. puts(argv[0]);
  12. puts(program_invocation_name);
  13. puts(program_invocation_short_name);
  14. }