Noodle
Loading...
Searching...
No Matches
noodle_fs.h File Reference
#include <stddef.h>
#include <stdint.h>
Include dependency graph for noodle_fs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NOODLE_FS_NEEDS_LEADING_SLASH   1
 Whether the selected backend expects normalized paths to start with '/'.
#define NOODLE_MAX_FILENAME   20
 Maximum filename length copied by noodle_norm_filename().

Functions

void noodle_copy_name (char *dst, size_t cap, const char *src)
 Copy a C string into a bounded buffer with NUL-termination.
const char * noodle_norm_filename (const char *name)
 Normalize a filename/path for the selected filesystem backend.
NDL_File noodle_fs_open_read (const char *path)
 Open a file for reading using the selected backend.
NDL_File noodle_fs_open_write (const char *path)
 Open a file for writing using the selected backend.
bool noodle_fs_remove (const char *path)
 Remove a file using the selected backend.
void noodle_rewind_file (NDL_File &fi)
 Rewind a file handle to position 0.