mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-20 19:41:58 +00:00
Update docs
This commit is contained in:
1 parent
4528cc28ef
commit
5326e8d212
1 file changed
+3
-2
+3
-2
@@ -1064,11 +1064,12 @@ past the timer's expiration time.
|
|||||||
### mg\_file\_read()
|
### mg\_file\_read()
|
||||||
|
|
||||||
```c
|
```c
|
||||||
char *mg_file_read(const char *path);
|
char *mg_file_read(const char *path, size_t *sizep);
|
||||||
```
|
```
|
||||||
|
|
||||||
Read file contents into a nul-terminated malloc-ed string. It is a caller's
|
Read file contents into a nul-terminated malloc-ed string. It is a caller's
|
||||||
responsibility to free() a returned pointer.
|
responsibility to free() a returned pointer. If `sizep` is not NULL, it will
|
||||||
|
return a file size in bytes.
|
||||||
|
|
||||||
### mg\_file\_size()
|
### mg\_file\_size()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user