| 44 | } |
| 45 | |
| 46 | int textFileWrite(const char *fn, const char *s) |
| 47 | { |
| 48 | FILE *file; |
| 49 | int status = 0; |
| 50 | |
| 51 | if (fn != NULL) |
| 52 | { |
| 53 | file = fopen(fn, "wt"); |
| 54 | |
| 55 | if (file != NULL) |
| 56 | { |
| 57 | if (fwrite(s, sizeof(char), strlen(s), file) == strlen(s)) |
| 58 | status = 1; |
| 59 | fclose(file); |
| 60 | } |
| 61 | } |
| 62 | return(status); |
| 63 | } |
nothing calls this directly
no outgoing calls
no test coverage detected