|
Bond 0.9
C++ Bond Runtime Library API Documentation
|
String formatting functions used by Bond. More...
#include "bond/conf.h"#include "bond/private/cstdio.h"String formatting functions used by Bond.
By default, snprintf and vsnprintf are brought into the Bond namespace from the C++ standard library. They can be replaced, e.g. with stb_sprintf, by defining USER_BOND_CSTDIO_HEADER. A replacement must declare both functions in the Bond namespace with the standard semantics. Bond passes the format strings of OutputStream::Print through to vsnprintf, so a replacement must support every conversion that Bond and its embedders use, including the BOND_PRI* macros.
File I/O is not covered here. It is abstracted by the InputStream, OutputStream and StreamFactory interfaces instead.