Searched refs:memchr (Results 1 - 25 of 64) sorted by relevance

123

/haiku-buildtools/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/
H A Dmemchr.c3 Ensure all expected transformations of builtin memchr occur
10 extern void *memchr (const void *, int, size_t);
17 if (memchr (foo1, 'x', 11))
19 if (memchr (foo1, 'o', 11) != foo1 + 4)
21 if (memchr (foo1, 'w', 2))
23 if (memchr (foo1 + 5, 'o', 6) != foo1 + 7)
25 if (memchr (foo1, 'd', 11) != foo1 + 10)
27 if (memchr (foo1, 'd', 10))
29 if (memchr (foo1, '\0', 11))
31 if (memchr (foo
[all...]
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/
H A Dmismatch-decl-1.c1 /* This test assumes -fbuiltin and not -fansi to get "index" and "memchr" builtin DECLs. */
18 /* This changes the type of "memchr", which is only a builtin. */
19 int memchr; /* { dg-warning "built-in function 'memchr' declared as non-function" } */ variable
H A Dpr59717.c178 memchr (p, 2, sz); /* { dg-warning "incompatible implicit" } */
/haiku-buildtools/gcc/gcc/testsuite/c-c++-common/
H A DWsizeof-pointer-memaccess1.c11 extern void *memchr (const void *, int, size_t);
37 arr[i++] = memchr (&a, 0, sizeof (&a)); /* { dg-warning "call is the same expression as the source; did you mean to remove the addressof" } */
38 arr[i++] = memchr (pa1, 0, sizeof (pa1)); /* { dg-warning "call is the same expression as the source; did you mean to dereference it" } */
39 arr[i++] = memchr (pa2, 0, sizeof pa2); /* { dg-warning "call is the same expression as the source; did you mean to dereference it" } */
40 arr[i++] = memchr (pa3, 0, sizeof (pa3)); /* { dg-warning "call is the same expression as the source; did you mean to dereference it" } */
41 arr[i++] = memchr (pa4, 0, sizeof pa4); /* { dg-warning "call is the same expression as the source; did you mean to dereference it" } */
42 arr[i++] = memchr (pa1, 0, sizeof (struct A *)); /* { dg-warning "call is the same pointer type \[^\n\r\]* as the source; expected \[^\n\r\]* or an explicit length" } */
43 arr[i++] = memchr (pa2, 0, sizeof (PTA)); /* { dg-warning "call is the same pointer type \[^\n\r\]* as the source; expected \[^\n\r\]* or an explicit length" } */
44 arr[i++] = memchr (pa3, 0, sizeof (PA)); /* { dg-warning "call is the same pointer type \[^\n\r\]* as the source; expected \[^\n\r\]* or an explicit length" } */
45 arr[i++] = memchr (pa
[all...]
/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/headers/cstring/
H A Dfunctions_std.cc24 using std::memchr;
/haiku-buildtools/binutils/libiberty/
H A Dmemchr.c3 @deftypefn Supplemental void* memchr (const void *@var{s}, int @var{c}, @
22 memchr (register const PTR src_void, int c, size_t length) function
/haiku-buildtools/gcc/libiberty/
H A Dmemchr.c3 @deftypefn Supplemental void* memchr (const void *@var{s}, int @var{c}, @
22 memchr (register const PTR src_void, int c, size_t length) function
/haiku-buildtools/legacy/binutils/libiberty/
H A Dmemchr.c3 @deftypefn Supplemental void* memchr (const void *@var{s}, int @var{c}, size_t @var{n})
21 memchr (register const PTR src_void, int c, size_t length) function
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/ext/
H A Dbuiltin10.C14 cv1 = memchr ("abcba", 'b', 3);
24 cv1 = std::memchr ("abcba", 'b', 3);
34 v1 = memchr ((char *)"abcba", 'b', 3);
44 v1 = std::memchr ((char *)"abcba", 'b', 3);
51 // { dg-final { scan-tree-dump-not "memchr" "optimized" } }
/haiku-buildtools/legacy/gcc/libiberty/
H A Dmemchr.c3 <<memchr>>---find character in memory
6 memchr
10 void *memchr(const void *<[src]>, int <[c]>, size_t <[length]>);
14 void *memchr(<[src]>, <[c]>, <[length]>)
31 <<memchr>> requires no supporting OS subroutines.
34 memchr ansi pure
46 memchr (src_void, c, length) function
H A DMakefile.in126 getruntime.c floatformat.c hex.c index.c insque.c memchr.c \
165 NEEDED = atexit calloc memchr memcmp memcpy memmove memset rename strchr \
/haiku-buildtools/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/lib/
H A Dmemchr.c6 memchr (const void *s, int c, __SIZE_TYPE__ n) function
/haiku-buildtools/gcc/libstdc++-v3/testsuite/21_strings/c_strings/char/
H A D3_neg.cc31 v1 = std::memchr (v2, '/', 3);
37 cv1 = std::memchr (v2, '/', 3);
43 v1 = std::memchr (cv2, '/', 3); // { dg-error "invalid conversion" }
49 cv1 = std::memchr (cv2, '/', 3);
H A D1.cc59 // const void* memchr(const void* s, int c, size_t n);
60 // void* memchr( void* s, int c, size_t n);
61 cv = std::memchr(cv, 'a', 3);
62 v = std::memchr(v, 'a', 3);
H A D2.cc38 cv1 = memchr(cv, '/', 3);
/haiku-buildtools/gcc/libstdc++-v3/testsuite/21_strings/headers/cstring/
H A Dfunctions_std.cc24 using std::memchr;
/haiku-buildtools/legacy/gcc/libio/
H A Disgetsb.cc45 char *delimp = (char*)memchr((void*)isb->_IO_read_ptr, delim, len);
H A Diogetline.c88 t = (char *) memchr ((void *) fp->_IO_read_ptr, delim, len);
H A Diogetdelim.c90 t = (char *) memchr ((void *) fp->_IO_read_ptr, delimiter, len);
/haiku-buildtools/legacy/gcc/texinfo/lib/
H A Dsystem.h55 char *memchr ();
/haiku-buildtools/gcc/libstdc++-v3/include/c_compatibility/
H A Dstring.h46 using std::memchr;
/haiku-buildtools/gcc/libstdc++-v3/config/locale/gnu/
H A Dcodecvt_members.cc139 __from_chunk_end = static_cast<const extern_type*>(memchr(__from_next, '\0',
255 __from_chunk_end = static_cast<const extern_type*>(memchr(__from, '\0',
/haiku-buildtools/jam/
H A Dlists.c193 while( p = (char *)memchr( op, '"', ep - op ) )
H A Dpathmac.c102 while( q = memchr( q, '.', end - q ) )
/haiku-buildtools/gcc/gcc/cp/
H A Dcfns.h205 "memchr",

Completed in 220 milliseconds

123