testc_ini.c 324 B

1234567891011121314151617181920212223242526
  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. return -1;
  12. }
  13. int testc_faux_ini_signal(void) {
  14. char *p = NULL;
  15. printf("%s\n", p);
  16. return -1;
  17. }