Lines Matching refs:fmt
110 int vsprintf(char *buf, const char *fmt, va_list args)
128 for (str = buf ; *fmt ; ++fmt) {
129 if (*fmt != '%') {
130 *str++ = *fmt;
137 ++fmt; /* this also skips first '%' */
138 switch (*fmt) {
148 if ('0' <= *fmt && *fmt <= '9')
149 field_width = skip_atoi(&fmt);
150 else if (*fmt == '*') {
151 ++fmt;
162 if (*fmt == '.') {
163 ++fmt;
164 if ('0' <= *fmt && *fmt <= '9')
165 precision = skip_atoi(&fmt);
166 else if (*fmt == '*') {
167 ++fmt;
177 if (*fmt == 'l' && *(fmt + 1) == 'l') {
179 fmt += 2;
180 } else if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L'
181 || *fmt == 'Z') {
182 qualifier = *fmt;
183 ++fmt;
189 switch (*fmt) {
262 if (*fmt)
263 *str++ = *fmt;
265 --fmt;
293 int sprintf(char * buf, const char *fmt, ...)
298 va_start(args, fmt);
299 i = vsprintf(buf, fmt, args);