MCPcopy Create free account
hub / github.com/cppla/ServerStatus / str_format

Function str_format

server/src/system.c:1574–1589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1572}
1573
1574void str_format(char *buffer, int buffer_size, const char *format, ...)
1575{
1576#if defined(CONF_FAMILY_WINDOWS)
1577 va_list ap;
1578 va_start(ap, format);
1579 _vsnprintf(buffer, buffer_size, format, ap);
1580 va_end(ap);
1581#else
1582 va_list ap;
1583 va_start(ap, format);
1584 vsnprintf(buffer, buffer_size, format, ap);
1585 va_end(ap);
1586#endif
1587
1588 buffer[buffer_size-1] = 0; /* assure null termination */
1589}
1590
1591
1592

Callers 12

MakeBanInfoMethod · 0.85
UpdateMethod · 0.85
UnbanByIndexMethod · 0.85
NetToStringMethod · 0.85
dbg_msgFunction · 0.85
mem_debug_dumpFunction · 0.85
net_addr_strFunction · 0.85
fs_listdirFunction · 0.85
fs_is_dirFunction · 0.85
JSONUpdateThreadMethod · 0.85
ReadConfigMethod · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected