HomeSort by relevance Sort by last modified time
    Searched full:scanf (Results 1 - 25 of 346) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/Sema/
format-strings-fixit.c 98 int scanf(char const *, ...);
118 scanf("%lf", str);
119 scanf("%f", &shortVar);
120 scanf("%f", &uShortVar);
121 scanf("%p", &intVar);
122 scanf("%Lf", &uIntVar);
123 scanf("%ld", &floatVar);
124 scanf("%f", &doubleVar);
125 scanf("%d", &longDoubleVar);
126 scanf("%f", &longVar)
    [all...]
format-strings-scanf.c 12 int scanf(const char * restrict, ...) ;
21 scanf(s, i); // expected-warning{{ormat 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("%y", i); // expected-warning{{invalid conversion specifier 'y'}
    [all...]
format-strings-c90.c 4 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 *'}}
format-strings-int-typedefs.c 4 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 *')}}
format-strings-gnu.c 10 int scanf(const char * restrict, ...) ;
47 scanf("%Ld", y); // no-warning
48 scanf("%Lu", y); // no-warning
49 scanf("%Lx", y); // no-warning
50 scanf("%Ld", x); // no-warning
51 scanf("%Lu", x); // no-warning
52 scanf("%Lx", x); // no-warning
53 scanf("%Ls", "hello"); // expected-warning {{length modifier 'L' results in undefined behavior or no effect with 's' conversion specifier}}
format-strings-no-fixit.c 11 int scanf(char const *, ...);
37 scanf(kFormat6, i);
38 scanf("%00d", i);
64 // CHECK: scanf(kFormat6, i);
65 // CHECK: scanf("%d", i);
format-strings-darwin.c 11 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'?}}
format-strings-non-iso.c 4 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}}
  /external/clang/test/SemaCXX/
format-strings-0x.cpp 4 extern int scanf(const char *restrict, ...);
9 scanf("%as", sp); // expected-warning{{format specifies type 'float *' but the argument has type 'char **'}}
12 scanf("%afoobar", fp);
format-strings.cpp 6 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/clang/test/Analysis/
taint-generic.c 3 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("%zd", &ts)
    [all...]
taint-tester.c 5 int scanf(const char *restrict format, ...);
21 scanf("%d", &n);
35 scanf("%p", &ptr);
47 scanf("%p", &xyPtr);
55 scanf("%d", &xy.y);
56 scanf("%d", &xy.x);
60 // Now, scanf scans both.
61 scanf("%d %d", &xy.y, &xy.x);
70 scanf("%d", &x);
193 scanf("%s", s)
    [all...]
  /external/clang/lib/Basic/
Builtins.cpp 106 const char *Scanf = strpbrk(GetRecord(ID).Attributes, "sS");
107 if (!Scanf)
110 HasVAListArg = (*Scanf == 'S');
112 ++Scanf;
113 assert(*Scanf == ':' && "s or S specifier must have be followed by a ':'");
114 ++Scanf;
116 assert(strchr(Scanf, ':') && "printf specifier must end with a ':'");
117 FormatIdx = strtol(Scanf, 0, 10);
  /external/genext2fs/m4/
ac_func_scanf_can_malloc.m4 12 AC_CACHE_CHECK([whether scanf can malloc], [ac_scanf_can_malloc],
51 AC_DEFINE([SCANF_CAN_MALLOC], 1, [Define to 1 if the scanf %a conversion format mallocs a buffer. Undefine if %a format denotes a float.])
  /bionic/libc/stdio/
scanf.c 1 /* $OpenBSD: scanf.c,v 1.9 2005/08/08 08:05:36 espie Exp $ */
38 scanf(const char *fmt, ...) function
floatio.h 36 * Floating point scanf/printf (input/output) definitions.
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/bits/
stdio-ldbl.h 35 __LDBL_REDIR1_DECL (scanf, __nldbl___isoc99_scanf)
39 __LDBL_REDIR_DECL (scanf)
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/bits/
stdio-ldbl.h 35 __LDBL_REDIR1_DECL (scanf, __nldbl___isoc99_scanf)
39 __LDBL_REDIR_DECL (scanf)
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/bits/
stdio-ldbl.h 35 __LDBL_REDIR1_DECL (scanf, __nldbl___isoc99_scanf)
39 __LDBL_REDIR_DECL (scanf)
  /frameworks/rs/driver/linkloader/android/
test-librsloader.c 43 DEF("scanf", scanf)
44 DEF("__isoc99_scanf", scanf)
  /frameworks/rs/driver/linkloader/tests/images/
simple-test.c 34 if (scanf("%u", &user) != 1) {
  /external/clang/test/SemaObjCXX/
format-strings.mm 6 extern int scanf(const char *restrict, ...);
  /external/compiler-rt/lib/sanitizer_common/
sanitizer_common_interceptors_scanf.inc 10 // Scanf implementation for use in *Sanitizer interceptors.
38 // Parse scanf format string. If a valid directive in encountered, it is
133 // if scanf will parse it as POSIX %a [h-j %d ] or
192 // Returns the store size of a scanf directive (if >0), or a value of
273 // Common part of *scanf interceptors.
  /bionic/libc/include/
stdio.h 216 __attribute__ ((__format__ (scanf, 2, 3)))
246 int scanf(const char *, ...)
247 __attribute__ ((__format__ (scanf, 1, 2)))
255 __attribute__ ((__format__ (scanf, 2, 3)))
275 __attribute__((__format__ (scanf, 2, 0)))
278 __attribute__((__format__ (scanf, 1, 0)))
284 __attribute__((__format__ (scanf, 2, 0)))
  /external/icu4c/test/iotest/
iotest.cpp 391 testData=dataModule->createTestData("scanf", errorCode);
427 log_err("error in scanf test case[%d] Got: %f Exp: %f\n",
436 log_err("error in scanf test case[%d] Got: %f Exp: %f\n",
445 log_err("error in scanf test case[%d] Got: %02X Exp: %02X\n",
454 log_err("error in scanf test case[%d] Got: %04X Exp: %04X\n",
463 log_err("error in scanf test case[%d] Got: %08X Exp: %08X\n",
472 log_err("error in scanf 64-bit. Test case = %d\n", i);
480 log_err("error in scanf char * string. Got \"%s\" Expected \"%s\". Test case = %d\n", cBuffer, cExpected, i);
489 log_err("error in scanf UChar * string %s Got: \"%s\". Test case = %d\n", cExpected, cBuffer, i);
498 log_err("error scanf converted %d arguments. Test case = %d\n", uBufferLenReturned, i)
    [all...]

Completed in 625 milliseconds

1 2 3 4 5 6 7 8 91011>>