testc_ini.c 366 B

123456789101112131415161718192021222324252627
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. int testc_faux_ini_good(void) {
  4. char *path = NULL;
  5. path = getenv("FAUX_INI_PATH");
  6. if (path)
  7. printf("Env var is [%s]\n", path);
  8. return 0;
  9. }
  10. int testc_faux_ini_bad(void) {
  11. printf("Some debug information here\n");
  12. return -1;
  13. }
  14. int testc_faux_ini_signal(void) {
  15. char *p = NULL;
  16. printf("%s\n", p);
  17. return -1;
  18. }