std1.0.0-beta-7 SafeC docs

Module fmt

#include <std/fmt.h> source

String formatting Safe snprintf-based builders that write into caller-supplied buffers.

Functions

fmt_int
fmt_uint
fmt_float
fmt_hex
fmt_hex_upper
fmt_bool
fmt_strCopy src into dst (at most dst.len-1 bytes), NUL-terminate. Returns number of characters copied.
fmt_appendConcatenate src onto dst (treats dst as a NUL-terminated string). Returns total length after append, or -1 if dst.len was exceeded.