MCPcopy Create free account
hub / github.com/apache/brpc / snprintf

Function snprintf

src/butil/strings/string_util.h:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54inline int snprintf(char* buffer, size_t size, const char* format, ...)
55 PRINTF_FORMAT(3, 4);
56inline int snprintf(char* buffer, size_t size, const char* format, ...) {
57 va_list arguments;
58 va_start(arguments, format);
59 int result = vsnprintf(buffer, size, format, arguments);
60 va_end(arguments);
61 return result;
62}
63
64// BSD-style safe and consistent string copy functions.
65// Copies |src| to |dst|, where |dst_size| is the total allocated size of |dst|.

Callers 15

SendLargeFileMethod · 0.85
PredictMethod · 0.85
mainFunction · 0.85
mainFunction · 0.85
findMethod · 0.85
RemoveRedisServerFunction · 0.85
show_prof_and_rmFunction · 0.85
TEST_FFunction · 0.85
PerfTestFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
FailedWriterFunction · 0.85

Calls 1

vsnprintfFunction · 0.85

Tested by 15

RemoveRedisServerFunction · 0.68
show_prof_and_rmFunction · 0.68
TEST_FFunction · 0.68
PerfTestFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
FailedWriterFunction · 0.68
WriterFunction · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68
PerfTestFunction · 0.68