mirror of
https://github.com/fmtlib/fmt.git
synced 2026-11-09 14:50:24 +08:00
Document that fmt_vformat doesn't null-terminate the output
This commit is contained in:
parent
aa99376370
commit
bee9426a64
@ -62,6 +62,10 @@ typedef struct {
|
||||
|
||||
enum { fmt_error = -1, fmt_error_invalid_arg = -2 };
|
||||
|
||||
// Formats `args` according to specifications in `fmt`, writes up to `size`
|
||||
// characters of the result to `buffer` and returns the total (not truncated)
|
||||
// output size or a negative error code. `fmt_vformat` does not append a
|
||||
// terminating null character.
|
||||
int FMT_CAPI fmt_vformat(char* buffer, size_t size, const char* fmt,
|
||||
const fmt_arg* args, size_t num_args);
|
||||
int FMT_CAPI fmt_vprint(FILE* stream, const char* fmt, const fmt_arg* args,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user