| 32 | } |
| 33 | |
| 34 | static bool gf_absolute(const char *path) { |
| 35 | #ifdef _WIN32 |
| 36 | return path && ((path[0] && path[1] == ':' && (path[2] == '/' || path[2] == '\\')) || |
| 37 | (path[0] == '\\' && path[1] == '\\')); |
| 38 | #else |
| 39 | return path && path[0] == '/'; |
| 40 | #endif |
| 41 | } |
| 42 | |
| 43 | static bool gf_write(const char *path, const void *bytes, size_t length) { |
| 44 | FILE *file = cbm_fopen(path, "wb"); |
no outgoing calls
no test coverage detected