MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / get_width

Function get_width

strings/my_vsnprintf.c:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86*/
87
88static const char *get_width(const char *fmt, size_t *width)
89{
90 for (; my_isdigit(&my_charset_latin1, *fmt); fmt++)
91 {
92 *width= *width * 10 + (uint)(*fmt - '0');
93 }
94 return fmt;
95}
96
97/**
98 Calculates print width or index of positional argument

Callers 2

process_argsFunction · 0.85
my_vsnprintf_exFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected