Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 109) sorted by relevance

12345

/picolibc-3.7.0-3.6.0/newlib/libc/stdio/
Dsccl.c35 register u_char *fmt) in __sccl() argument
40 c = *fmt++; /* first char hat => negated scanset */ in __sccl()
44 c = *fmt++; /* get new first char */ in __sccl()
52 return fmt - 1; /* format ended before closing ] */ in __sccl()
67 n = *fmt++; /* and examine the next */ in __sccl()
72 return fmt - 1; in __sccl()
87 n = *fmt; in __sccl()
93 fmt++; in __sccl()
107 c = *fmt++; in __sccl()
109 return fmt - 1; in __sccl()
[all …]
Dnano-vfprintf.c455 register char *fmt; /* Format string. */ in VFPRINTF() local
493 fmt = (char *)fmt0; in VFPRINTF()
504 cp = fmt; in VFPRINTF()
505 while (*fmt != '\0' && *fmt != '%') in VFPRINTF()
506 fmt += 1; in VFPRINTF()
508 if ((m = fmt - cp) != 0) in VFPRINTF()
513 if (*fmt == '\0') in VFPRINTF()
516 fmt++; /* Skip over '%'. */ in VFPRINTF()
533 for (; (cp = memchr (flag_chars, *fmt, 5)); fmt++) in VFPRINTF()
548 if (*fmt == '*') in VFPRINTF()
[all …]
Dnano-vfscanf.c136 const char *fmt, in VFSCANF() argument
140 return _SVFSCANF (fp, fmt, ap); in VFSCANF()
235 register u_char *fmt = (u_char *) fmt0; in _SVFSCANF() local
259 if (*fmt == 0) in _SVFSCANF()
262 if (isspace (*fmt)) in _SVFSCANF()
271 fmt++; in _SVFSCANF()
274 if ((c = *fmt++) != '%') in _SVFSCANF()
280 if (*fmt == '*') in _SVFSCANF()
283 fmt++; in _SVFSCANF()
286 for (; is_digit (*fmt); fmt++) in _SVFSCANF()
[all …]
Dfiscanf.c25 fiscanf(FILE *fp, const char *fmt, ...) in fiscanf() argument
30 va_start (ap, fmt); in fiscanf()
31 ret = _svfiscanf ( fp, fmt, ap); in fiscanf()
Dfiprintf.c27 const char *fmt, ...) in fiprintf() argument
32 va_start (ap, fmt); in fiprintf()
33 ret = vfiprintf ( fp, fmt, ap); in fiprintf()
/picolibc-3.7.0-3.6.0/test/
Dprintf-tests.c34 static void failmsg(int serial, char *fmt, ...) { in failmsg() argument
36 va_start(ap, fmt); in failmsg()
38 vprintf(fmt, ap); in failmsg()
51 static int test(int serial, char *expect, char *fmt, ...) { in test() argument
54 va_start(ap, fmt); in test()
65 switch (fmt[strlen(fmt)-1]) { in test()
77 star = strchr(fmt, '*'); in test()
83 n = snprintf(buf, PRINTF_BUF_SIZE, fmt, iv1, iv2, printf_float(dv)); in test()
85 an = asprintf(&abuf, fmt, iv1, iv2, printf_float(dv)); in test()
90 n = snprintf(buf, PRINTF_BUF_SIZE, fmt, iv, printf_float(dv)); in test()
[all …]
Dprintf_scanf.c148 const wchar_t *fmt; member
151 { .str = L"foo\n", .fmt = L"foo\nbar", .expect = -1 },
152 { .str = L"foo\n", .fmt = L"foo bar", .expect = -1 },
153 { .str = L"foo\n", .fmt = L"foo %d", .expect = -1 },
154 { .str = L"foo\n", .fmt = L"foo\n%d", .expect = -1 },
155 { .str = L"foon", .fmt = L"foonbar", .expect = -1 },
156 { .str = L"foon", .fmt = L"foon%d", .expect = -1 },
157 { .str = L"foo ", .fmt = L"foo bar", .expect = -1 },
158 { .str = L"foo ", .fmt = L"foo %d", .expect = -1 },
159 { .str = L"foo\t", .fmt = L"foo\tbar", .expect = -1 },
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/misc/
D__dprintf.c84 __dprintf (const char *fmt, ...) in __dprintf() argument
86 __dprintf (fmt, va_alist) in __dprintf()
87 char *fmt; in __dprintf()
94 va_start (args, fmt);
99 while (*fmt)
105 if (*fmt != '%' || *++fmt == '%')
107 write_char (*fmt++);
111 if (*fmt == 'N')
115 ++fmt;
116 c = *fmt++;
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/
Dvprintf.c43 const char* fmt; member
51 vprintf (const char *fmt, in vprintf() argument
56 args.fmt = fmt; in vprintf()
Dvscanf.c46 char* fmt; member
54 vscanf (const char *fmt, in vscanf() argument
59 args.fmt = (char*) fmt; in vscanf()
Dvsprintf.c46 char *fmt; member
55 const char *__restrict fmt, in vsprintf() argument
63 args.fmt = (char*) fmt; in vsprintf()
Dvsscanf.c48 const char *fmt; member
57 const char *__restrict fmt, in vsscanf() argument
65 args.fmt = (char*) fmt; in vsscanf()
Dvfscanf.c48 char* fmt; member
57 const char *__restrict fmt, in vfscanf() argument
65 args.fmt = (char*) fmt; in vfscanf()
Dvsnprintf.c47 const char* fmt; member
57 const char *__restrict fmt, in vsnprintf() argument
66 args.fmt = fmt; in vsnprintf()
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/
Dvfscanf.c171 conv_brk (FILE *stream, int *lenp, width_t width, CHAR *addr, const CHAR *fmt) in conv_brk() argument
185 unsigned char c = *fmt++; in conv_brk()
244 return fmt; in conv_brk()
421 int vfscanf (FILE * stream, const CHAR *fmt, va_list ap_orig) in vfscanf() argument
444 while ((c = *fmt++) != 0) { in vfscanf()
450 || (c = *fmt++) == '%') in vfscanf()
465 c = *fmt++; in vfscanf()
473 c = *fmt++; in vfscanf()
483 c = *fmt++; in vfscanf()
499 c = *fmt++; in vfscanf()
[all …]
Dprintf.c35 printf(const char *fmt, ...) in printf() argument
40 va_start(ap, fmt); in printf()
41 i = vfprintf(stdout, fmt, ap); in printf()
Dscanf.c35 scanf(const char *fmt, ...) in scanf() argument
40 va_start(ap, fmt); in scanf()
41 i = vfscanf(stdin, fmt, ap); in scanf()
Dwprintf.c35 wprintf(const wchar_t *fmt, ...) in wprintf() argument
40 va_start(ap, fmt); in wprintf()
41 i = vfwprintf(stdout, fmt, ap); in wprintf()
Dwscanf.c33 wscanf(const wchar_t *fmt, ...) in wscanf() argument
38 va_start(ap, fmt); in wscanf()
39 i = vfwscanf(stdin, fmt, ap); in wscanf()
Dfscanf.c35 fscanf(FILE *stream, const char *fmt, ...) in fscanf() argument
40 va_start(ap, fmt); in fscanf()
41 i = vfscanf(stream, fmt, ap); in fscanf()
Dfprintf.c35 fprintf(FILE *stream, const char *fmt, ...) in fprintf() argument
40 va_start(ap, fmt); in fprintf()
41 i = vfprintf(stream, fmt, ap); in fprintf()
Dfwprintf.c35 fwprintf(FILE *stream, const wchar_t *fmt, ...) in fwprintf() argument
40 va_start(ap, fmt); in fwprintf()
41 i = vfwprintf(stream, fmt, ap); in fwprintf()
Dfwscanf.c33 fwscanf(FILE *stream, const wchar_t *fmt, ...) in fwscanf() argument
38 va_start(ap, fmt); in fwscanf()
39 i = vfwscanf(stream, fmt, ap); in fwscanf()
/picolibc-3.7.0-3.6.0/newlib/libc/ssp/
Dsprintf_chk.c48 const char * __restrict fmt, ...) in __sprintf_chk() argument
54 va_start(ap, fmt); in __sprintf_chk()
56 rv = vsprintf(buf, fmt, ap); in __sprintf_chk()
58 if ((rv = vsnprintf(buf, slen, fmt, ap)) >= 0 && (size_t)rv >= slen) in __sprintf_chk()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/nvptx/
Dprintf.c21 printf (const char *fmt, ...) in printf() argument
26 va_start (args, fmt); in printf()
27 res = vprintf (fmt, args); in printf()

12345