Searched refs:scanf (Results 1 - 25 of 51) sorted by relevance

123

/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/format/
H A Dc99-scanf-2.c1 /* Test for scanf formats. Formats using extensions to the standard
16 scanf ("%qd", llp); /* { dg-warning "C" "%q length" } */
17 scanf ("%Ld", llp); /* { dg-warning "C" "%L length" } */
19 scanf ("%C", ls); /* { dg-warning "C" "scanf %C" } */
20 scanf ("%S", ls); /* { dg-warning "C" "scanf %S" } */
22 scanf ("%1$d", ip); /* { dg-warning "C" "scanf $ format" } */
23 /* glibc also supports flags ' and I on scanf format
[all...]
H A Dc90-scanf-3.c1 /* Test for scanf formats. Formats using extensions to the standard
16 scanf ("%as", sp); /* { dg-warning "C" "%as" } */
17 scanf ("%aS", lsp); /* { dg-warning "C" "%aS" } */
18 scanf ("%a[bcd]", sp); /* { dg-warning "C" "%a[]" } */
H A Dext-4.c1 /* Test for scanf formats. %a extensions. */
15 scanf ("%as", sp);
16 scanf ("%aS", lsp);
17 scanf ("%a[bcd]", sp);
H A Dext-2.c2 Test for scanf formats.
18 scanf ("%qd%qi%qo%qu%qx%qX%qn", qp, qp, uqp, uqp, uqp, uqp, qn);
19 scanf ("%qf", fp); /* { dg-warning "length" "bad use of %q" } */
20 scanf ("%qF", fp); /* { dg-warning "length" "bad use of %q" } */
21 scanf ("%qe", fp); /* { dg-warning "length" "bad use of %q" } */
22 scanf ("%qE", fp); /* { dg-warning "length" "bad use of %q" } */
23 scanf ("%qg", fp); /* { dg-warning "length" "bad use of %q" } */
24 scanf ("%qG", fp); /* { dg-warning "length" "bad use of %q" } */
25 scanf ("%qa", fp); /* { dg-warning "length" "bad use of %q" } */
26 scanf ("
[all...]
H A Dc90-scanf-2.c1 /* Test for scanf formats. Formats using C99 features should be rejected
14 /* Some tests already in c90-scanf-1.c. */
16 scanf ("%hhd", hhp); /* { dg-warning "length|C" "%hh in C90" } */
17 scanf ("%lld", llp); /* { dg-warning "length|C" "%ll in C90" } */
18 scanf ("%jd", jp); /* { dg-warning "length|C" "%j in C90" } */
19 scanf ("%zu", zp); /* { dg-warning "length|C" "%z in C90" } */
20 scanf ("%td", tp); /* { dg-warning "length|C" "%t in C90" } */
22 scanf ("%F", fp); /* { dg-warning "C" "%F in C90" } */
23 scanf ("%a", fp); /* { dg-warning "C" "%a in C90" } */
24 scanf ("
[all...]
H A Dc90-scanf-1.c1 /* Test for scanf formats. Formats using C90 features, including cases
22 scanf ("%d", ip);
23 scanf ("%*d");
24 scanf ("%3d", ip);
25 scanf ("%hd", hp);
26 scanf ("%3ld", lp);
27 scanf ("%*3d");
28 scanf ("%d %ld", ip, lp);
30 scanf ("%%");
31 scanf ("
[all...]
H A Dattr-5.c9 /* This scanf declaration is static, so can't be the system function. */
10 static int scanf(const char *restrict, ...);
19 scanf("%ld", p); /* { dg-bogus "format" "static" } */
23 /* Dummy definition of scanf. */
25 scanf (const char *restrict fmt, ...) function
H A Dc99-scanf-1.c1 /* Test for scanf formats. Formats using C99 features, including cases
28 scanf ("%*d%*i%*o%*u%*x%*X%*a%*A%*e%*E%*f%*F%*g%*G%*s%*[abc]%*c%*p");
29 scanf ("%*2d%*8s%*3c");
30 scanf ("%*n", n); /* { dg-warning "suppress" "suppression of %n" } */
31 scanf ("%*hd"); /* { dg-warning "together" "suppression with length" } */
32 scanf ("%2d%3i%4o%5u%6x%7X%8a%9A%10e%11E%12f%13F%14g%15G%16s%3[abc]%4c%5p",
35 scanf ("%0d", ip); /* { dg-warning "width" "warning for zero width" } */
36 scanf ("%3n", n); /* { dg-warning "width" "width with %n" } */
38 scanf ("%hd%hi%ho%hu%hx%hX%hn", hp, hp, uhp, uhp, uhp, uhp, hn);
39 scanf ("
[all...]
H A Dattr-6.c20 scanf("%ld", p); /* { dg-warning "format" "implicit scanf" } */
H A Dwarnll-1.c16 scanf ("%lld%lli%llo%llu%llx%llX%lln", llp, llp,
32 scanf ("%qd", llp); /* { dg-warning "C" "scanf %qd" } */
33 scanf ("%qi", llp); /* { dg-warning "C" "scanf %qi" } */
34 scanf ("%qo", ullp); /* { dg-warning "C" "scanf %qo" } */
35 scanf ("%qu", ullp); /* { dg-warning "C" "scanf %qu" } */
36 scanf ("
[all...]
H A Dc94-scanf-1.c1 /* Test for scanf formats. Changes in C94 to C90. */
16 scanf ("%lc%ls%l[abc]", ls, ls, ls);
H A Dc90-scanf-4.c1 /* Test for scanf formats. Test that the C90 functions get their default
17 scanf ("%d", ip);
18 scanf ("%ld", ip); /* { dg-warning "format" "scanf" } */
27 scanf (gettext ("%d"), ip);
28 scanf (gettext ("%ld"), ip);
29 scanf (dgettext ("", "%d"), ip);
30 scanf (dgettext ("", "%ld"), ip);
31 scanf (dcgettext ("", "%d", 0), ip);
32 scanf (dcgettex
[all...]
H A Dc99-scanf-3.c1 /* Test for scanf formats. Test that the C99 functions get their default
16 scanf ("%d", ip);
17 scanf ("%ld", ip); /* { dg-warning "format" "scanf" } */
26 scanf (gettext ("%d"), ip);
27 scanf (gettext ("%ld"), ip);
28 scanf (dgettext ("", "%d"), ip);
29 scanf (dgettext ("", "%ld"), ip);
30 scanf (dcgettext ("", "%d", 0), ip);
31 scanf (dcgettex
[all...]
H A Dno-exargs-2.c16 /* With scanf formats, gaps in the used arguments are allowed only if the
20 scanf ("%3$d%1$d", ip, ip, ip);
22 scanf ("%3$d%1$d", ip, ip, ip, i);
23 scanf ("%3$d%1$d", ip, i, ip); /* { dg-warning "before used" "unused $ scanf non-pointer operand" } */
H A Dxopen-1.c15 /* The conversion specifiers C and S, for both printf and scanf,
52 scanf ("%C", ls);
53 scanf ("%S", ls);
54 scanf ("%*C%*S");
55 scanf ("%2C%3S", ls, ls);
56 scanf ("%hC", ls); /* { dg-warning "length" "bad %hC" } */
57 scanf ("%hhC", ls); /* { dg-warning "length" "bad %hhC" } */
58 scanf ("%lC", ls); /* { dg-warning "length" "bad %lC" } */
59 scanf ("%llC", ls); /* { dg-warning "length" "bad %llC" } */
60 scanf ("
[all...]
H A Dz-1.c12 scanf ("%zu", &t); /* { dg-bogus "length|format" "bogus scanf warning" } */
H A Dattr-2.c10 extern void tformatscanf (const char *, ...) __attribute__((format(scanf, 1, 2)));
18 extern void t__format__scanf (const char *, ...) __attribute__((__format__(scanf, 1, 2)));
36 tformatscanf ("%"); /* { dg-warning "format" "attribute format scanf" } */
52 t__format__scanf ("%"); /* { dg-warning "format" "attribute __format__ scanf" } */
H A Dext-6.c37 scanf ("%d", ip);
38 scanf ("%ld", ip); /* { dg-warning "format" "scanf" } */
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/warn/
H A Dformat1.C13 std::scanf ("%d%lc%ls%l[abc]", ip, ls, ls, ls);
14 std::scanf ("%hd", ip); // { dg-warning "format" "scanf warning" }
/openbsd-current/lib/libc/stdio/
H A Dscanf.c1 /* $OpenBSD: scanf.c,v 1.11 2015/08/31 02:53:57 guenther Exp $ */
38 scanf(const char *fmt, ...) function
48 DEF_STRONG(scanf); variable
/openbsd-current/games/trek/
H A Dgetpar.c55 i = scanf("%d", &n);
79 i = scanf("%lf", &d);
132 scanf("%*[ \t;]");
133 if ((c = scanf("%99[^ \t;\n]", input)) < 0)
206 scanf("%*[\t ;]");
207 i = scanf(format, r);
/openbsd-current/gnu/usr.bin/gcc/gcc/fixinc/tests/base/
H A Dstdio.h72 extern int scanf( const char *__format, ...);
/openbsd-current/gnu/gcc/libstdc++-v3/include/c/
H A Dstd_cstdio.h72 #undef scanf macro
/openbsd-current/gnu/gcc/fixincludes/tests/base/
H A Dstdio.h85 extern int scanf( const char *__format, ...);
/openbsd-current/gnu/lib/libstdc++/libstdc++/include/c/
H A Dstd_cstdio.h72 #undef scanf macro

Completed in 103 milliseconds

123