mirror of
https://github.com/cesanta/mongoose.git
synced 2025-07-25 22:56:16 +08:00
Update mg_avprintf.md
This commit is contained in:
parent
07faacdaf9
commit
ac8c756879
@ -6,9 +6,9 @@ signature: |
|
|||||||
int mg_avprintf(char **buf, size_t size, const char *fmt, va_list ap);
|
int mg_avprintf(char **buf, size_t size, const char *fmt, va_list ap);
|
||||||
---
|
---
|
||||||
|
|
||||||
Print message to buffer. If buffer is large enough to hold the message,
|
Prints message to the buffer. If the buffer is large enough to hold the message,
|
||||||
return buffer. If buffer is to small, allocate large enough buffer on heap,
|
it returns buffer. If buffer is to small, it allocates a large enough buffer on heap
|
||||||
and return allocated buffer.
|
and returns allocated buffer.
|
||||||
This is a supposed use case:
|
This is a supposed use case:
|
||||||
|
|
||||||
char buf[5], *p = buf;
|
char buf[5], *p = buf;
|
||||||
|
Loading…
Reference in New Issue
Block a user