| 240 | } |
| 241 | |
| 242 | bool SaveStringToFile(const char* filename, const char* s) |
| 243 | { |
| 244 | FILE* f = fopen(filename, "w"); |
| 245 | if (!f) |
| 246 | { |
| 247 | std::cout << "Could not open file for writing: " << filename << std::endl; |
| 248 | return false; |
| 249 | } |
| 250 | else |
| 251 | { |
| 252 | fputs(s, f); |
| 253 | fclose(f); |
| 254 | |
| 255 | return true; |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | |
| 260 | string StripFilename(const char* path) |
nothing calls this directly
no outgoing calls
no test coverage detected