Lines Matching refs:fmt
113 int vsprintf(char *buf, const char *fmt, va_list args) in vsprintf() argument
128 for (str = buf; *fmt; ++fmt) { in vsprintf()
129 if (*fmt != '%') { in vsprintf()
130 *str++ = *fmt; in vsprintf()
137 ++fmt; /* this also skips first '%' */ in vsprintf()
138 switch (*fmt) { in vsprintf()
158 if (isdigit(*fmt)) in vsprintf()
159 field_width = skip_atoi(&fmt); in vsprintf()
160 else if (*fmt == '*') { in vsprintf()
161 ++fmt; in vsprintf()
172 if (*fmt == '.') { in vsprintf()
173 ++fmt; in vsprintf()
174 if (isdigit(*fmt)) in vsprintf()
175 precision = skip_atoi(&fmt); in vsprintf()
176 else if (*fmt == '*') { in vsprintf()
177 ++fmt; in vsprintf()
187 if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L') { in vsprintf()
188 qualifier = *fmt; in vsprintf()
189 ++fmt; in vsprintf()
195 switch (*fmt) { in vsprintf()
261 if (*fmt) in vsprintf()
262 *str++ = *fmt; in vsprintf()
264 --fmt; in vsprintf()
283 int sprintf(char *buf, const char *fmt, ...) in sprintf() argument
288 va_start(args, fmt); in sprintf()
289 i = vsprintf(buf, fmt, args); in sprintf()
294 int printf(const char *fmt, ...) in printf() argument
300 va_start(args, fmt); in printf()
301 printed = vsprintf(printf_buf, fmt, args); in printf()