MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / textFileWrite

Function textFileWrite

engine/src/textfile.cpp:46–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46int 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected