Skip to content

cf_fs_read_entire_file_to_memory_and_nul_terminate

Category: file
GitHub: cute_file_system.h


Reads an entire file into a buffer of memory and returns it as a nul-terminated C string.

char* cf_fs_read_entire_file_to_memory_and_nul_terminate(const char* virtual_path, size_t* size);
Parameters Description
virtual_path A path to the file.
size If the file exists the size of the file is stored here.

Remarks

Call cf_free on it when done. Virtual File System.

cf_fs_read_entire_file_to_memory
cf_fs_write_string_file
cf_fs_write_entire_buffer_to_file