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

123456

/freebsd-current/contrib/netbsd-tests/lib/libc/string/
H A Dt_memchr.c17 atf_tc_set_md_var(tc, "descr", "Test memchr(3) results, #1");
23 void * (*f)(const void *, int, size_t) = memchr;
134 atf_tc_set_md_var(tc, "descr", "Test memchr(3) results, #2");
142 ATF_CHECK(memchr(buf, 'a', 0) == NULL);
143 ATF_CHECK(memchr(buf, 'g', 0) == NULL);
144 ATF_CHECK(memchr(buf, 'x', 7) == NULL);
146 ATF_CHECK(memchr("\0", 'x', 0) == NULL);
147 ATF_CHECK(memchr("\0", 'x', 1) == NULL);
151 ATF_CHECK(memchr(buf, 'a', i) == buf + 0);
152 ATF_CHECK(memchr(bu
[all...]
/freebsd-current/sys/libkern/
H A Dmemchr.c40 memchr(const void *s, int c, size_t n) function
H A Dmemmem.c50 return memchr(l, (int)*cs, l_len);
/freebsd-current/contrib/ntp/libntp/
H A Dstrdup.c33 void *memchr(const void *s, int c, size_t n) function
48 const char *e = memchr(s, 0, n);
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Support/SystemZ/
H A DzOSSupport.h42 static_cast<const char *>(std::memchr(S, '\0', MaxLen));
/freebsd-current/lib/libc/aarch64/string/
H A DMakefile.inc7 memchr \
/freebsd-current/contrib/llvm-project/libcxx/include/
H A Dstring.h35 const void* memchr(const void* s, int c, size_t n);
36 void* memchr( void* s, int c, size_t n);
94 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_PREFERRED_OVERLOAD const void* memchr(const void* __s, int __c, size_t __n) { function
97 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_PREFERRED_OVERLOAD void* memchr(void* __s, int __c, size_t __n) { function
/freebsd-current/contrib/llvm-project/libcxx/modules/std.compat/
H A Dcstring.inc13 using ::memchr;
/freebsd-current/lib/libc/string/
H A Dmemchr.c36 memchr(const void *src, int c, size_t n) function
H A DMakefile.inc13 memccpy.c memchr.c memrchr.c memcmp.c \
39 CFLAGS.memchr.c+= -fno-sanitize=address
48 MAN+= bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 index.3 memccpy.3 memchr.3 \
64 MLINKS+=memchr.3 memrchr.3
/freebsd-current/lib/libc/stdio/
H A Dfgetws.c75 nl = memchr(fp->_p, '\n', fp->_r);
92 src = memchr(fp->_p, '\0', fp->_r);
H A Dfgetln.c91 if ((p = memchr((void *)fp->_p, '\n', (size_t)fp->_r)) != NULL) {
134 if ((p = memchr((void *)fp->_p, '\n', (size_t)fp->_r)) == NULL)
H A Dfgets.c94 t = memchr((void *)p, '\n', len);
/freebsd-current/lib/libc/amd64/string/
H A DMakefile.inc4 memchr.S \
/freebsd-current/contrib/llvm-project/libcxx/modules/std/
H A Dcstring.inc13 using std::memchr;
/freebsd-current/contrib/cortex-strings/src/aarch64/
H A Dmemchr.S2 * memchr - find a character in a memory zone
78 def_fn memchr
172 .size memchr, . - memchr
/freebsd-current/usr.bin/grep/
H A Dfile.c114 if ((p = memchr(bufpos, fileeol, bufrem)) != NULL) {
145 if ((p = memchr(bufpos, fileeol, bufrem)) == NULL)
216 memchr(bufpos, '\0', bufrem) != NULL)
/freebsd-current/contrib/mandoc/
H A Dpreconv.c122 if (NULL == (eoln = memchr(ln, '\n', sz)))
146 if (NULL == (eoph = memchr(ln, ';', sz)))
/freebsd-current/lib/libc/iconv/
H A Dcitrus_memstream.c82 q = memchr(p, T_COMM, len);
123 chr = memchr(head, ch, _memstream_remainder(ms));
/freebsd-current/contrib/llvm-project/clang/lib/Headers/llvm_libc_wrappers/
H A Dstring.h81 void *memchr(void *__s, int __c, size_t __n) noexcept __LIBC_ATTRS;
82 const void *memchr(const void *__s, int __c, size_t __n) noexcept __LIBC_ATTRS;
/freebsd-current/contrib/sendmail/libsm/
H A Dfget.c93 t = (unsigned char *) memchr((void *) p, '\n', len);
/freebsd-current/lib/libutil/
H A Dtrimdomain.c77 if ((s = memchr(s, '.', (size_t)(end - s))) != NULL) {
/freebsd-current/contrib/cortex-strings/
H A DMakefile.am38 tests/test-memchr \
115 reference/bionic-c/memchr.c \
125 reference/glibc-c/memchr.c \
138 reference/newlib-c/memchr.c \
209 src/arm/memchr.S \
255 reference/newlib-xscale/memchr.c \
287 src/aarch64/memchr.S \
/freebsd-current/contrib/pam_modules/pam_passwdqc/
H A Dpasswdqc_random.c67 end = memchr(start, '\0', 6);
/freebsd-current/sys/contrib/libfdt/
H A Dlibfdt_env.h138 const char *p = memchr(string, 0, max_count);

Completed in 339 milliseconds

123456