Home
last modified time | relevance | path

Searched refs:snprintf (Results 1 – 25 of 36) sorted by relevance

12

/picolibc-latest/test/libc-testsuite/
Dsnprintf.c173 TEST(i, snprintf(0, 0, "%ld", 123456l), 6, "length returned %d != %d"); in test_snprintf()
174 TEST(i, snprintf(0, 0, "%.4s", "hello"), 4, "length returned %d != %d"); in test_snprintf()
175 TEST(i, snprintf(b, 0, "%.0s", "goodbye"), 0, "length returned %d != %d"); in test_snprintf()
178 TEST(i, snprintf(b, 4, "%ld", 123456l), 6, "length returned %d != %d"); in test_snprintf()
185 TEST(i, snprintf(b, sizeof b, "%.1022f", 0x1p-1021), 1024, "%d != %d"); in test_snprintf()
208 TEST(i, snprintf(b, sizeof b, "%d%n456", n, &len), 6, "length for %n"); in test_snprintf()
211 TEST(i, snprintf(b, sizeof b, "%d%hn456", n, &slen), 6, "length for %hn"); in test_snprintf()
214 TEST(i, snprintf(b, sizeof b, "%d%hhn456", n, &clen), 6, "length for %hhn"); in test_snprintf()
217 TEST(i, snprintf(b, sizeof b, "%d%ln456", n, &llen), 6, "length for %ln"); in test_snprintf()
222 TEST(i, snprintf(b, sizeof b, "%d%lln456", n, &lllen), 6, "length for %lln"); in test_snprintf()
[all …]
Dmeson.build40 'snprintf',
84 if t1 == 'snprintf'
85 # snprintf has one test which is really slow
Dstrtod.c58 snprintf(buf, sizeof buf, "%.300f", d); in test_strtod()
/picolibc-latest/newlib/libc/machine/spu/
Dsnprintf.S37 GLOBL snprintf
38 .type snprintf, @function
39 snprintf: label
53 .size snprintf, .-snprintf
Dsniprintf.S33 #define snprintf sniprintf macro
Dspu-gmon.c300 snprintf (filename, sizeof (filename), "gmon-%d-%llu-%llu.out", in __monstartup()
309 snprintf (errstr, sizeof (errstr), "Cannot open file: %s", filename); in __monstartup()
319 snprintf (errstr, sizeof (errstr), "Cannot truncate file: %s", filename); in __monstartup()
Dsyscall.def36 SPE_C99_VSNPRINTF snprintf 0 3
/picolibc-latest/newlib/libc/stdio/
Dsnprintf.c27 #undef snprintf
29 snprintf ( in snprintf() function
69 __strong_reference(snprintf, __snprintfieee128);
/picolibc-latest/newlib/libc/tinystdio/
Dsnprintf.c35 snprintf(char *s, size_t n, const char *fmt, ...) in snprintf() function
66 __strong_reference(snprintf, __snprintfieee128);
Dsnprintfd.c34 #define snprintf __d_snprintf macro
Dsnprintff.c34 #define snprintf __f_snprintf macro
/picolibc-latest/test/
Dprintf-tests.c95 n = snprintf(buf, PRINTF_BUF_SIZE, fmt, iv1, iv2, ldv); in test()
103 n = snprintf(buf, PRINTF_BUF_SIZE, fmt, iv1, iv2, dv); in test()
113 n = snprintf(buf, PRINTF_BUF_SIZE, fmt, iv, ldv); in test()
121 n = snprintf(buf, PRINTF_BUF_SIZE, fmt, iv, dv); in test()
131 n = snprintf(buf, PRINTF_BUF_SIZE, fmt, ldv); in test()
139 n = snprintf(buf, PRINTF_BUF_SIZE, fmt, dv); in test()
Dtest-sprintf-percent-n.c58 res = snprintf(result, sizeof(result), in main()
Dtest-fma.c157 return snprintf(str, n, format, (double) f); in strfromf()
Dmath_errhandling.c156 snprintf(tmp, sizeof(tmp), "?? 0x%x", e); in e_to_str()
/picolibc-latest/semihost/machine/mips/
Dmips_exit.c44 n = snprintf(buf, sizeof(buf), "%cexit %d\n", 0xe9, code); in _exit()
/picolibc-latest/semihost/machine/sparc/
Dsparc_exit.c47 n = snprintf(buf, sizeof(buf), "%cexit %d\n", 0xe9, code); in _exit()
/picolibc-latest/semihost/machine/x86/
De9_exit.c46 n = snprintf(buf, sizeof(buf), "%cexit %d\n", 0xe9, code); in _exit()
/picolibc-latest/semihost/machine/powerpc/
Dpowerpc_exit.c47 n = snprintf(buf, sizeof(buf), "%cexit %d\n", 0xe9, code); in _exit()
/picolibc-latest/semihost/machine/sh/
Dsh_exit.c48 n = snprintf(buf, sizeof(buf), "%cexit %d\n", 0xe9, code); in _exit()
/picolibc-latest/newlib/testsuite/newlib.stdio/
Dswprintf.c21 snprintf(cbuf, 512, "%.*f", 3, val); in main()
/picolibc-latest/newlib/libc/time/
Dasctime_r.c43 n = snprintf (result, __ASCTIME_SIZE, "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n", in asctime_r()
/picolibc-latest/newlib/testsuite/newlib.time/
Dtzset.c179 snprintf(buffer, 128, "winter time, timezone = \"%s\"", ptr.tzstr); in test_TimezoneStrings()
186 snprintf(buffer, 128, "summer time, timezone = \"%s\"", ptr.tzstr); in test_TimezoneStrings()
/picolibc-latest/newlib/libc/include/ssp/
Dstdio.h60 #define snprintf(str, len, ...) \ macro
/picolibc-latest/newlib/libc/ssp/
Dssp.tex48 fread snprintf vsprintf

12