Lines Matching defs:format
36 lwres__print_sprintf(char *str, const char *format, ...) {
39 va_start(ap, format);
40 vsprintf(str, format, ap);
50 lwres__print_snprintf(char *str, size_t size, const char *format, ...) {
54 va_start(ap, format);
55 ret = vsnprintf(str, size, format, ap);
66 lwres__print_vsnprintf(char *str, size_t size, const char *format, va_list ap) {
97 INSIST(format != NULL);
99 while (*format != '\0') {
100 if (*format != '%') {
102 *str++ = *format;
106 format++;
109 format++;
121 if (*format == '#') {
123 format++;
124 } else if (*format == '-') {
127 format++;
128 } else if (*format == ' ') {
131 format++;
132 } else if (*format == '+') {
135 format++;
136 } else if (*format == '0') {
139 format++;
147 if (*format == '*') {
149 format++;
150 } else if (isdigit((unsigned char)*format)) {
152 width = strtoul(format, &e, 10);
153 format = e;
159 if (*format == '.') {
160 format++;
162 if (*format == '*') {
164 format++;
165 } else if (isdigit((unsigned char)*format)) {
167 precision = strtoul(format, &e, 10);
168 format = e;
172 switch (*format) {
177 *str++ = *format;
184 format++;
188 format++;
192 format++;
193 if (*format == 'l') {
195 format++;
208 switch (*format) {
512 precision, l ? "L" : "", *format);
513 switch (*format) {
560 format++;