Lines Matching defs:format
26 lwres__print_sprintf(char *str, const char *format, ...) {
29 va_start(ap, format);
30 vsprintf(str, format, ap);
40 lwres__print_snprintf(char *str, size_t size, const char *format, ...) {
44 va_start(ap, format);
45 ret = vsnprintf(str, size, format, ap);
56 lwres__print_vsnprintf(char *str, size_t size, const char *format, va_list ap) {
88 INSIST(format != NULL);
90 while (*format != '\0') {
91 if (*format != '%') {
93 *str++ = *format;
97 format++;
100 format++;
112 if (*format == '#') {
114 format++;
115 } else if (*format == '-') {
118 format++;
119 } else if (*format == ' ') {
122 format++;
123 } else if (*format == '+') {
126 format++;
127 } else if (*format == '0') {
130 format++;
138 if (*format == '*') {
140 format++;
141 } else if (isdigit((unsigned char)*format)) {
143 width = strtoul(format, &e, 10);
144 format = e;
150 if (*format == '.') {
151 format++;
153 if (*format == '*') {
155 format++;
156 } else if (isdigit((unsigned char)*format)) {
158 precision = strtoul(format, &e, 10);
159 format = e;
163 switch (*format) {
168 *str++ = *format;
175 format++;
179 format++;
183 format++;
184 if (*format == 'l') {
186 format++;
191 format++;
203 switch (*format) {
522 precision, l ? "L" : "", *format);
523 switch (*format) {
570 format++;