MCPcopy Create free account
hub / github.com/ddnet/ddnet / str_format_v

Function str_format_v

src/base/str.cpp:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57int str_format_v(char *buffer, int buffer_size, const char *format, va_list args)
58{
59#if defined(CONF_FAMILY_WINDOWS)
60 _vsprintf_p(buffer, buffer_size, format, args);
61 buffer[buffer_size - 1] = 0; /* assure null termination */
62#else
63 vsnprintf(buffer, buffer_size, format, args);
64 /* null termination is assured by definition of vsnprintf */
65#endif
66 return str_utf8_fix_truncation(buffer);
67}
68
69#if !defined(CONF_DEBUG)
70int str_format_int(char *buffer, size_t buffer_size, int value)

Callers 5

ShowFileDialogErrorMethod · 0.85
AvLogCallbackFunction · 0.85
log_log_implFunction · 0.85
dbg_assert_impFunction · 0.85
str_formatFunction · 0.85

Calls 1

str_utf8_fix_truncationFunction · 0.85

Tested by

no test coverage detected