mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-22 11:36:21 +00:00
Change mg_file_read() signature: return mg_str
This commit is contained in:
1 parent
d128d2146a
commit
0e2f3de154
24 files changed
+95
-1052
No files matched your search
@@ -40,7 +40,7 @@ struct mg_fd {
|
||||
struct mg_fd *mg_fs_open(struct mg_fs *fs, const char *path, int flags);
|
||||
void mg_fs_close(struct mg_fd *fd);
|
||||
bool mg_fs_ls(struct mg_fs *fs, const char *path, char *buf, size_t len);
|
||||
char *mg_file_read(struct mg_fs *fs, const char *path, size_t *size);
|
||||
struct mg_str mg_file_read(struct mg_fs *fs, const char *path);
|
||||
bool mg_file_write(struct mg_fs *fs, const char *path, const void *, size_t);
|
||||
bool mg_file_printf(struct mg_fs *fs, const char *path, const char *fmt, ...);
|
||||
|
||||
|
||||
Reference in new issue
Block a user