Load a file's contents into memory. Returned object must be `delete`d to free the data. The data is guaranteed to be null-terminated such that it can be treated as a string. */
| 316 | treated as a string. |
| 317 | */ |
| 318 | FileData *AP_Filesystem::load_file(const char *filename) |
| 319 | { |
| 320 | const Backend &backend = backend_by_path(filename); |
| 321 | return backend.fs.load_file(filename); |
| 322 | } |
| 323 | |
| 324 | // returns null-terminated string; cr or lf terminates line |
| 325 | bool AP_Filesystem::fgets(char *buf, uint8_t buflen, int fd) |
no outgoing calls
no test coverage detected