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

Function check_longlong

strings/my_vsnprintf.c:107–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105*/
106
107static const char *check_longlong(const char *fmt, uint *have_longlong)
108{
109 *have_longlong= 0;
110 if (*fmt == 'l')
111 {
112 fmt++;
113 if (*fmt != 'l')
114 *have_longlong= (sizeof(long) == sizeof(longlong));
115 else
116 {
117 fmt++;
118 *have_longlong= 1;
119 }
120 }
121 else if (*fmt == 'z')
122 {
123 fmt++;
124 *have_longlong= (sizeof(size_t) == sizeof(longlong));
125 }
126 return fmt;
127}
128
129
130/**

Callers 2

process_argsFunction · 0.70
my_vsnprintf_exFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected