• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/mxml-2.7/

Lines Matching defs:format

54 	       const char *format,	/* I - Printf-style format string */
61 va_start(ap, format);
62 bytes = vsnprintf(buffer, bufsize, format, ap);
97 _mxml_strdupf(const char *format, /* I - Printf-style format string */
105 * Get a pointer to the additional arguments, format the string,
109 va_start(ap, format);
110 s = _mxml_vstrdupf(format, ap);
125 const char *format, /* I - Printf-style format string */
130 sign, /* Sign of format width */
135 char tformat[100], /* Temporary format string for sprintf() */
136 *tptr, /* Pointer into temporary format */
144 * Loop through the format string, formatting as needed...
151 while (*format)
153 if (*format == '%')
156 *tptr++ = *format++;
158 if (*format == '%')
160 if (bufptr && bufptr < bufend) *bufptr++ = *format;
162 format ++;
165 else if (strchr(" -+#\'", *format))
167 *tptr++ = *format;
168 sign = *format++;
173 if (*format == '*')
179 format ++;
189 while (isdigit(*format & 255))
192 *tptr++ = *format;
194 width = width * 10 + *format++ - '0';
198 if (*format == '.')
201 *tptr++ = *format;
203 format ++;
205 if (*format == '*')
211 format ++;
221 while (isdigit(*format & 255))
224 *tptr++ = *format;
226 prec = prec * 10 + *format++ - '0';
233 if (*format == 'l' && format[1] == 'l')
243 format += 2;
245 else if (*format == 'h' || *format == 'l' || *format == 'L')
248 *tptr++ = *format;
250 size = *format++;
253 if (!*format)
257 *tptr++ = *format;
259 type = *format++;
410 *bufptr++ = *format;
412 format ++;
432 _mxml_vstrdupf(const char *format, /* I - Printf-style format string */
442 * First format with a tiny buffer; this will tell us how many bytes are
447 bytes = vsnprintf(temp, sizeof(temp), format, apcopy);
464 vsnprintf(buffer, bytes + 1, format, ap);