Lines Matching refs:fmt
146 int vsprintf(char *buf, const char *fmt, va_list args) in vsprintf() argument
164 for (str=buf ; *fmt ; ++fmt) { in vsprintf()
165 if (*fmt != '%') { in vsprintf()
166 *str++ = *fmt; in vsprintf()
173 ++fmt; /* this also skips first '%' */ in vsprintf()
174 switch (*fmt) { in vsprintf()
184 if ('0' <= *fmt && *fmt <= '9') in vsprintf()
185 field_width = skip_atoi(&fmt); in vsprintf()
186 else if (*fmt == '*') { in vsprintf()
187 ++fmt; in vsprintf()
198 if (*fmt == '.') { in vsprintf()
199 ++fmt; in vsprintf()
200 if ('0' <= *fmt && *fmt <= '9') in vsprintf()
201 precision = skip_atoi(&fmt); in vsprintf()
202 else if (*fmt == '*') { in vsprintf()
203 ++fmt; in vsprintf()
213 if (*fmt == 'l' && *(fmt + 1) == 'l') { in vsprintf()
215 fmt += 2; in vsprintf()
216 } else if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L' in vsprintf()
217 || *fmt == 'Z') { in vsprintf()
218 qualifier = *fmt; in vsprintf()
219 ++fmt; in vsprintf()
225 switch (*fmt) { in vsprintf()
298 if (*fmt) in vsprintf()
299 *str++ = *fmt; in vsprintf()
301 --fmt; in vsprintf()
329 int sprintf(char * buf, const char *fmt, ...) in sprintf() argument
334 va_start(args, fmt); in sprintf()
335 i=vsprintf(buf,fmt,args); in sprintf()
343 printf(const char *fmt, ...) in printf() argument
348 va_start(args, fmt); in printf()
349 n = vsprintf(sprint_buf, fmt, args); in printf()