fs_write_file
-
int fs_write_file(const char *path, const void *buf, size_t size)
Writes content to file.
const char* buf = "hello"; if (!fs_write_file("foo.txt", buf, 5)) { printf("fs_write_file failed"); }- Parameters
path – [in] Some null-terminated path
buf – [in] Some memory buffer
size – [in] Buffer size
- Returns
If the file was written.