| 21 | // TODO: check ignore case backend mounted under a different backend. |
| 22 | |
| 23 | void write_file(const char* fname) { |
| 24 | FILE* fp = fopen(fname, "wt"); |
| 25 | assert(fp); |
| 26 | char data[] = "test"; |
| 27 | printf("Write '%s' to '%s'\n", data, fname); |
| 28 | assert(fputs(data, fp) >= 0); |
| 29 | assert(fclose(fp) == 0); |
| 30 | } |
| 31 | |
| 32 | void read_file(const char* fname) { |
| 33 | FILE* fp = fopen(fname, "rt"); |