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

12

/external/clang/test/Sema/
H A Dformat-strings-c90.c4 int scanf(const char * restrict, ...);
8 scanf("%as", sp); /* expected-warning{{'a' length modifier is not supported by ISO C}} */
9 scanf("%a[abc]", sp); /* expected-warning{{'a' length modifier is not supported by ISO C}} */
12 scanf("%a", fp);
13 scanf("%afoobar", fp);
20 scanf("%da", ip);
23 scanf("%as", fp); /* expected-warning{{format specifies type 'char **' but the argument has type 'float *'}}
25 scanf("%aS", fp); /* expected-warning{{format specifies type 'wchar_t **' (aka 'int **') but the argument has type 'float *'}}
28 scanf("%a[abc]", fp); /* expected-warning{{format specifies type 'char **' but the argument has type 'float *'}}
H A Dformat-strings-int-typedefs.c4 int scanf(char const *, ...);
16 scanf("%jd", 0); // expected-warning {{format specifies type 'intmax_t *' (aka 'long long *')}}
17 scanf("%ju", 0); // expected-warning {{format specifies type 'uintmax_t *' (aka 'unsigned long long *')}}
18 scanf("%zu", 0); // expected-warning {{format specifies type 'size_t *' (aka 'unsigned long *')}}
19 scanf("%td", 0); // expected-warning {{format specifies type 'ptrdiff_t *' (aka 'int *')}}
20 scanf("%lc", 0); // expected-warning {{format specifies type 'wchar_t *' (aka 'int *')}}
21 scanf("%ls", 0); // expected-warning {{format specifies type 'wchar_t *' (aka 'int *')}}
22 scanf("%S", 0); // expected-warning {{format specifies type 'wchar_t *' (aka 'int *')}}
23 scanf("%C", 0); // expected-warning {{format specifies type 'wchar_t *' (aka 'int *')}}
H A Dformat-strings-scanf.c12 int scanf(const char * restrict, ...) ;
21 scanf(s, i); // expected-warning{{format string is not a string literal}}
22 scanf("%0d", i); // expected-warning{{zero field width in scanf format string is unused}}
23 scanf("%00d", i); // expected-warning{{zero field width in scanf format string is unused}}
24 scanf("%d%[asdfasdfd", i, s); // expected-warning{{no closing ']' for '%[' in scanf format string}}
27 scanf ("%" "hu" "\n", &s_x); // no-warning
28 scanf("
[all...]
H A Dformat-strings-fixit.c99 int scanf(char const *, ...);
123 scanf("%lf", str);
124 scanf("%lf", vstr);
125 scanf("%ls", str);
126 scanf("%ls", str);
129 scanf("%f", &shortVar);
130 scanf("%f", &uShortVar);
131 scanf("%p", &intVar);
132 scanf("%f", intAVar);
133 scanf("
[all...]
H A Dformat-strings-non-iso.c4 int scanf(const char * restrict, ...);
11 scanf("%qd", (long long *)0); // expected-warning{{'q' length modifier is not supported by ISO C}} expected-note{{did you mean to use 'll'?}}
14 scanf("%ms", &cp); // expected-warning{{'m' length modifier is not supported by ISO C}}
H A Dformat-strings-gnu.c10 int scanf(const char * restrict, ...) ;
51 scanf("%Ld", y); // no-warning
52 scanf("%Lu", y); // no-warning
53 scanf("%Lx", y); // no-warning
54 scanf("%Ld", x); // no-warning
55 scanf("%Lu", x); // no-warning
56 scanf("%Lx", x); // no-warning
57 scanf("%Ls", "hello"); // expected-warning {{length modifier 'L' results in undefined behavior or no effect with 's' conversion specifier}}
H A Dformat-strings-ms.c5 int scanf(const char * restrict, ...) ;
44 scanf("%wc", &c);
45 scanf("%wC", &c);
46 scanf("%C", &c);
47 scanf("%ws", s);
48 scanf("%wS", s);
49 scanf("%S", s);
58 scanf("%wc", &bad); // expected-warning{{format specifies type 'wchar_t *' (aka 'unsigned short *') but the argument has type 'double *'}}
59 scanf("%wC", &bad); // expected-warning{{format specifies type 'wchar_t *' (aka 'unsigned short *') but the argument has type 'double *'}}
60 scanf("
[all...]
H A Dformat-strings-darwin.c11 int scanf(const char * restrict, ...) ;
57 scanf("%hD", x); // expected-warning{{conversion specifier is not supported by ISO C}} expected-note {{did you mean to use 'd'?}}
58 scanf("%lD", y); // expected-warning{{conversion specifier is not supported by ISO C}} expected-note {{did you mean to use 'd'?}}
59 scanf("%hU", x); // expected-warning{{conversion specifier is not supported by ISO C}} expected-note {{did you mean to use 'u'?}}
60 scanf("%lU", y); // expected-warning{{conversion specifier is not supported by ISO C}} expected-note {{did you mean to use 'u'?}}
61 scanf("%hO", x); // expected-warning{{conversion specifier is not supported by ISO C}} expected-note {{did you mean to use 'o'?}}
62 scanf("%lO", y); // expected-warning{{conversion specifier is not supported by ISO C}} expected-note {{did you mean to use 'o'?}}
H A Dformat-strings-no-fixit.c11 int scanf(char const *, ...);
37 scanf(kFormat6, i);
38 scanf("%00d", i);
64 // CHECK: scanf(kFormat6, i);
65 // CHECK: scanf("%d", i);
/external/clang/test/SemaCXX/
H A Dformat-strings-0x-nopedantic.cpp4 extern int scanf(const char *restrict, ...);
H A Dformat-strings-0x.cpp4 extern int scanf(const char *restrict, ...);
9 scanf("%as", sp); // expected-warning{{format specifies type 'float *' but the argument has type 'char **'}}
12 scanf("%p", sp); // expected-warning{{format specifies type 'void **' but the argument has type 'char **'}}
15 scanf("%afoobar", fp);
H A Dformat-strings.cpp6 extern int scanf(const char *restrict, ...);
12 scanf("%as", sp); // expected-warning{{'a' length modifier is not supported by ISO C}}
16 scanf("%afoobar", fp);
28 int scanf(const char *, ...) __attribute__((format(scanf, 2, 3)));
38 foo.scanf("%d"); // expected-warning{{more '%' conversions than data arguments}}
/external/compiler-rt/test/asan/TestCases/Windows/
H A Dshadow_mapping_failure.cc10 scanf("%s", bigchunk);
/external/ltp/include/
H A Dsafe_file_ops_fn.h27 * All-in-one function to scanf value(s) from a file.
31 __attribute__ ((format (scanf, 4, 5)));
36 __attribute__ ((format (scanf, 5, 6)));
/external/clang/test/Analysis/
H A Dtaint-generic.c3 int scanf(const char *restrict format, ...);
38 scanf("%d", &n);
44 scanf("%d", &n);
51 scanf("%d", &n);
58 scanf("%d", &n);
68 scanf("%d", t); // expected-warning {{format specifies type 'int *' but the argument has type 'int'}}
113 scanf("%s", addr);
125 scanf("%s", addr);
134 scanf("%s %d", addr, &numt);
141 scanf("
[all...]
H A Dtaint-tester.c17 scanf("%d", &n);
31 scanf("%p", &ptr);
43 scanf("%p", &xyPtr);
51 scanf("%d", &xy.y);
52 scanf("%d", &xy.x);
56 // Now, scanf scans both.
57 scanf("%d %d", &xy.y, &xy.x);
66 scanf("%d", &x);
180 scanf("%s", s);
/external/webrtc/webrtc/voice_engine/test/cmd_test/
H A Dvoe_cmd_test.cc272 ASSERT_EQ(1, scanf("%i", &ip_selection));
278 ASSERT_EQ(1, scanf("%s", ip));
283 ASSERT_EQ(1, scanf("%i", &rPort));
294 ASSERT_EQ(1, scanf("%i", &lPort));
306 ASSERT_EQ(1, scanf("%i", &codec_selection));
359 ASSERT_EQ(1, scanf("%d", &pd));
363 ASSERT_EQ(1, scanf("%d", &rd));
385 ASSERT_EQ(1, scanf("%i", &call_selection));
461 ASSERT_EQ(1, scanf("%i", &option_selection));
542 ASSERT_EQ(1, scanf("
[all...]
/external/aac/libSYS/include/
H A Dcmdl_parser.h157 #define _tscanf scanf
177 * Scans argc, argv and a scanf style format string for parameters and stores the
/external/ltp/testcases/kernel/controllers/freezer/
H A Dtimed_forkbomb.c58 while (scanf("%as", &word) < 1) {
/external/webrtc/webrtc/modules/audio_device/test/
H A Daudio_device_test_func.cc16 // Disable warning message 4996 ('scanf': This function or variable may be unsafe)
89 if (scanf("%d", &selection) < 0) {
/external/clang/test/Analysis/Inputs/
H A Dsystem-header-simulator.h21 int scanf(const char *restrict format, ...);
/external/bison/darwin-lib/
H A Dstdio.h110 are the ones of the system scanf(), rather than the ones standardized by
1306 # undef scanf
1307 /* Don't break __attribute__((format(scanf,M,N))). */
1308 # define scanf __scanf__
1316 _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *format, ...));
1319 # undef scanf
1320 # define scanf rpl_scanf
1322 _GL_FUNCDECL_RPL (scanf, int, (const char *format, ...)
1325 _GL_CXXALIAS_RPL (scanf, int, (const char *format, ...));
1328 _GL_CXXALIAS_SYS (scanf, in
1330 _GL_CXXALIASWARN (scanf); variable
[all...]
/external/bison/linux-lib/
H A Dstdio.h110 are the ones of the system scanf(), rather than the ones standardized by
1306 # undef scanf
1307 /* Don't break __attribute__((format(scanf,M,N))). */
1308 # define scanf __scanf__
1316 _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *format, ...));
1319 # undef scanf
1320 # define scanf rpl_scanf
1322 _GL_FUNCDECL_RPL (scanf, int, (const char *format, ...)
1325 _GL_CXXALIAS_RPL (scanf, int, (const char *format, ...));
1328 _GL_CXXALIAS_SYS (scanf, in
1330 _GL_CXXALIASWARN (scanf); variable
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
H A D2-1.c170 while (scanf("*%i*", &child_count) == 0)
H A D2-2.c174 while (scanf("*%i*", &child_count) == 0)

Completed in 978 milliseconds

12