Defined in 8 files as a prototype:
Defined in 10 files as a function:
- common/lib/libc/arch/i386/string/memchr.S, line 12 (as a function)
- common/lib/libc/arch/x86_64/string/memchr.S, line 48 (as a function)
- common/lib/libc/string/memchr.c, line 52 (as a function)
- external/bsd/libbind/dist/isc/ctl_clnt.c, line 124 (as a function)
- external/bsd/llvm/dist/clang/test/CodeGen/pr9614.c, line 21 (as a function)
- external/bsd/nvi/dist/clib/memchr.c, line 54 (as a function)
- external/gpl2/grep/dist/lib/memchr.c, line 59 (as a function)
- external/gpl3/binutils/dist/libiberty/memchr.c, line 22 (as a function)
- lib/libc/string/Lint_memchr.c, line 12 (as a function)
- sys/arch/vax/include/macros.h, line 221 (as a function)
Referenced in 179 files:
- bin/ksh/misc.c, 2 times
- bin/ksh/shf.c, line 570
- common/dist/zlib/gzread.c, line 586
- common/lib/libc/arch/i386/string/memchr.S, line 110
- common/lib/libc/arch/x86_64/string/memchr.S, line 109
- common/lib/libc/string/memmem.c, line 186
- crypto/external/bsd/heimdal/dist/lib/asn1/der_get.c, line 179
- crypto/external/bsd/heimdal/dist/lib/hx509/cert.c, 2 times
- crypto/external/bsd/heimdal/dist/lib/kadm5/password_quality.c, line 152
- crypto/external/bsd/netpgp/dist/src/lib/reader.c, line 669
- crypto/external/bsd/netpgp/dist/src/libverify/libverify.c, line 1761
- crypto/external/bsd/netpgp/dist/src/libverify/pgpsum.c, 2 times
- crypto/external/bsd/netpgp/dist/src/netpgpverify/libverify.c, line 2210
- crypto/external/bsd/netpgp/dist/src/netpgpverify/pgpsum.c, 2 times
- crypto/external/bsd/openssh/dist/channels.c, 2 times
- crypto/external/bsd/openssh/dist/hostfile.c, line 91
- crypto/external/bsd/openssh/dist/kex.c, line 470
- crypto/external/bsd/openssh/dist/sshbuf-getput-basic.c, line 195
- crypto/external/bsd/openssh/dist/sshbuf-misc.c, line 147
- crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_ht.c, line 359
- crypto/external/bsd/openssl/dist/crypto/pem/pem_lib.c, line 825
- crypto/external/bsd/openssl/dist/crypto/x509/x509_vpm.c, line 47
- crypto/external/bsd/openssl/dist/crypto/x509v3/v3_utl.c, 2 times
- crypto/external/bsd/openssl/dist/ssl/packet_local.h, line 459
- external/bsd/fetch/dist/libfetch/common.c, line 591
- external/bsd/fetch/dist/libfetch/ftp.c, line 1286
- external/bsd/fetch/dist/libfetch/http.c, line 1410
- external/bsd/file/dist/src/softmagic.c, 2 times
- external/bsd/less/dist/output.c, line 153
- external/bsd/libarchive/dist/libarchive/archive_read_support_format_cab.c, line 2196
- external/bsd/libarchive/dist/libarchive/archive_read_support_format_mtree.c, line 1976
- external/bsd/libarchive/dist/libarchive/archive_read_support_format_tar.c, 2 times
- external/bsd/libarchive/dist/libarchive/archive_read_support_format_warc.c, line 452
- external/bsd/libarchive/dist/libarchive/archive_read_support_format_zip.c, line 3465
- external/bsd/libbind/dist/isc/ctl_clnt.c, line 523
- external/bsd/libbind/dist/isc/ctl_srvr.c, line 600
- external/bsd/libc++/dist/libcxx/test/depr/depr.c.headers/string_h.pass.cpp, line 37
- external/bsd/libc++/dist/libcxx/test/std/depr/depr.c.headers/string_h.pass.cpp, line 37
- external/bsd/libc++/dist/libcxx/test/std/strings/c.strings/cstring.pass.cpp, line 38
- external/bsd/libc++/dist/libcxx/test/strings/c.strings/cstring.pass.cpp, line 38
- external/bsd/libevent/dist/buffer.c, 4 times
- external/bsd/llvm/dist/clang/lib/AST/Stmt.cpp, line 638
- external/bsd/llvm/dist/clang/test/Analysis/ptr-arith.c, line 30
- external/bsd/llvm/dist/clang/test/CodeGen/pr9614.c, line 30
- external/bsd/llvm/dist/clang/test/SemaCXX/constexpr-string.cpp, line 206
- external/bsd/llvm/dist/llvm/include/llvm/ADT/StringRef.h, line 302
- external/bsd/llvm/dist/llvm/lib/Support/StringRef.cpp, line 147
- external/bsd/mdocml/dist/mandocdb.c, line 1364
- external/bsd/mdocml/dist/preconv.c, 2 times
- external/bsd/mdocml/dist/read.c, line 117
- external/bsd/ntp/dist/ntpd/ntp_control.c, line 1032
- external/bsd/ntp/dist/sntp/libevent/buffer.c, 4 times
- external/bsd/nvi/dist/vi/vs_msg.c, line 414
- external/bsd/openldap/dist/include/lber_pvt.h, 3 times
- external/bsd/openldap/dist/libraries/liblber/decode.c, 3 times
- external/bsd/openldap/dist/libraries/libldap/getdn.c, 2 times
- external/bsd/openldap/dist/libraries/liblmdb/mdb_dump.c, line 278
- external/bsd/openldap/dist/libraries/liblmdb/mdb_load.c, 5 times
- external/bsd/openldap/dist/libraries/liblmdb/mdb_stat.c, line 234
- external/bsd/openldap/dist/servers/slapd/back-ndb/ndbio.cpp, line 1309
- external/bsd/openldap/dist/servers/slapd/schema_init.c, 2 times
- external/bsd/openldap/dist/tests/progs/ldif-filter.c, line 73
- external/bsd/pkg_install/dist/lib/pkgdb.c, line 183
- external/bsd/tmux/dist/cmd-paste-buffer.c, line 87
- external/bsd/tmux/dist/compat/memmem.c, line 55
- external/bsd/tre/dist/lib/tre-match-parallel.c, line 210
- external/cddl/osnet/dist/uts/common/dtrace/dtrace.c, line 13784
- external/gpl2/diffutils/dist/lib/memchr.c, 2 times
- external/gpl2/diffutils/dist/src/io.c, 2 times
- external/gpl2/diffutils/dist/src/sdiff.c, 3 times
- external/gpl2/dtc/dist/fdtdump.c, line 216
- external/gpl2/dtc/dist/tests/testutils.c, line 153
- external/gpl2/gettext/dist/gettext-runtime/gnulib-lib/memchr.c, 2 times
- external/gpl2/gettext/dist/gettext-runtime/gnulib-lib/strnlen1.c, line 31
- external/gpl2/gettext/dist/gettext-tools/gnulib-lib/fnmatch.c, line 172
- external/gpl2/gettext/dist/gettext-tools/gnulib-lib/memchr.c, 2 times
- external/gpl2/gettext/dist/gettext-tools/gnulib-lib/strnlen1.c, line 31
- external/gpl2/gettext/dist/gettext-tools/libgrep/kwset.c, line 511
- external/gpl2/gettext/dist/gettext-tools/libgrep/m-fgrep.c, line 154
- external/gpl2/gettext/dist/gettext-tools/libgrep/m-regex.c, 4 times
- external/gpl2/gettext/dist/gettext-tools/libgrep/memchr.c, 2 times
- external/gpl2/gettext/dist/gettext-tools/src/msgl-equal.c, 4 times
- external/gpl2/gettext/dist/gettext-tools/src/write-po.c, line 714
- external/gpl2/grep/dist/src/grep.c, 5 times
- external/gpl2/grep/dist/src/kwset.c, line 511
- external/gpl2/grep/dist/src/search.c, 7 times
- external/gpl2/groff/dist/src/libs/libbib/linear.cpp, line 331
- external/gpl2/groff/dist/src/libs/libgroff/string.cpp, line 276
- external/gpl2/groff/dist/src/libs/snprintf/snprintf.c, line 779
- external/gpl2/groff/dist/src/preproc/refer/ref.cpp, 11 times
- external/gpl2/texinfo/dist/makeinfo/makeinfo.c, line 1068
- external/gpl2/xcvs/dist/diff/diff.c, line 170
- external/gpl2/xcvs/dist/diff/io.c, line 75
- external/gpl2/xcvs/dist/lib/chdir-long.c, line 153
- external/gpl2/xcvs/dist/lib/fnmatch.c, line 203
- external/gpl2/xcvs/dist/lib/memchr.c, 2 times
- external/gpl2/xcvs/dist/lib/strnlen1.c, line 37
- external/gpl2/xcvs/dist/src/buffer.c, 3 times
- external/gpl2/xcvs/dist/src/import.c, line 1657
- external/gpl2/xcvs/dist/src/rcs.c, 5 times
- external/gpl2/xcvs/dist/src/zlib.c, 2 times
- external/gpl3/binutils/dist/bfd/archive.c, 4 times
- external/gpl3/binutils/dist/bfd/elf.c, line 9394
- external/gpl3/binutils/dist/elfcpp/elfcpp_file.h, line 543
- external/gpl3/binutils/dist/gold/ehframe.cc, line 774
- external/gpl3/binutils/dist/libiberty/simple-object-elf.c, line 1380
- external/gpl3/binutils/dist/zlib/gzread.c, line 586
- external/gpl3/gcc/dist/gcc/fold-const-call.c, line 1575
- external/gpl3/gcc/dist/gcc/gimple-fold.c, line 2068
- external/gpl3/gcc/dist/gcc/input.c, 2 times
- external/gpl3/gcc/dist/gcc/objc/objc-encoding.c, line 382
- external/gpl3/gcc/dist/libsanitizer/asan/asan_win_dll_thunk.cc, line 410
- external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly/codecvt_members.cc, 2 times
- external/gpl3/gcc/dist/libstdc++-v3/config/locale/gnu/codecvt_members.cc, 2 times
- external/gpl3/gcc/dist/libstdc++-v3/include/c_compatibility/string.h, line 46
- external/gpl3/gcc/dist/libstdc++-v3/src/c++98/localename.cc, line 198
- external/gpl3/gdb/dist/bfd/archive.c, 4 times
- external/gpl3/gdb/dist/bfd/elf.c, line 9572
- external/gpl3/gdb/dist/gdb/gnulib/import/chdir-long.c, line 142
- external/gpl3/gdb/dist/gdb/gnulib/import/fnmatch.c, line 171
- external/gpl3/gdb/dist/gdb/gnulib/import/getlogin_r.c, line 66
- external/gpl3/gdb/dist/gdb/gnulib/import/glob.c, line 878
- external/gpl3/gdb/dist/gdb/gnulib/import/memchr.c, 3 times
- external/gpl3/gdb/dist/gdb/gnulib/import/memmem.c, line 63
- external/gpl3/gdb/dist/gdb/gnulib/import/string.in.h, 10 times
- external/gpl3/gdb/dist/gdb/gnulib/import/strnlen1.c, line 30
- external/gpl3/gdb/dist/gdb/gnulib/import/strstr.c, line 35
- external/gpl3/gdb/dist/gdb/go32-nat.c, line 1359
- external/gpl3/gdb/dist/gdb/linux-tdep.c, 4 times
- external/gpl3/gdb/dist/gdb/linux-thread-db.c, line 478
- external/gpl3/gdb/dist/gdb/stap-probe.c, 3 times
- external/gpl3/gdb/dist/libiberty/simple-object-elf.c, line 1384
- external/gpl3/gdb/dist/zlib/gzread.c, line 586
- external/ibm-public/postfix/dist/src/cleanup/cleanup_message.c, 2 times
- external/ibm-public/postfix/dist/src/postscreen/postscreen_haproxy.c, line 107
- external/ibm-public/postfix/dist/src/util/mymalloc.c, line 248
- external/mit/lua/dist/src/lstrlib.c, 3 times
- external/mpl/bind/dist/bin/dnssec/dnssec-cds.c, line 1030
- external/mpl/bind/dist/lib/dns/rcode.c, line 419
- external/mpl/dhcp/dist/common/discover.c, 2 times
- external/mpl/dhcp/dist/common/tree.c, 2 times
- external/zlib/pigz/dist/pigz.c, line 2499
- games/battlestar/save.c, line 163
- lib/libc/citrus/citrus_lookup.c, line 186
- lib/libc/citrus/citrus_lookup_factory.c, line 62
- lib/libc/citrus/citrus_memstream.c, 2 times
- lib/libc/citrus/citrus_pivot_factory.c, line 123
- lib/libc/gen/devname.c, line 82
- lib/libc/gen/wordexp.c, line 236
- lib/libc/stdio/fgets.c, line 112
- lib/libc/stdio/fvwrite.c, line 189
- lib/libc/stdio/getdelim.c, line 87
- lib/libc/stdio/vfwprintf.c, line 86
- lib/libc/stdio/vsnprintf_ss.c, line 331
- lib/libedit/readline.c, line 215
- lib/libkvm/kvm_proc.c, line 973
- lib/librefuse/refuse.c, line 564
- libexec/getNAME/getNAME.c, 3 times
- sys/arch/cobalt/stand/boot/boot.c, line 345
- sys/arch/mmeye/stand/boot/boot.c, line 160
- sys/dev/ic/spdmem.c, line 753
- sys/dev/ofw/ofw_subr.c, 2 times
- sys/external/bsd/compiler_rt/dist/lib/asan/asan_win_dll_thunk.cc, line 65
- sys/external/bsd/compiler_rt/dist/lib/fuzzer/FuzzerUtilWindows.cpp, line 170
- sys/external/bsd/compiler_rt/dist/lib/msan/tests/msan_test.cc, 4 times
- sys/external/bsd/libfdt/dist/fdt_overlay.c, 3 times
- sys/external/bsd/libfdt/dist/fdt_ro.c, 4 times
- sys/fs/smbfs/smbfs_vnops.c, 2 times
- sys/kern/kern_drvctl.c, line 226
- sys/kern/subr_prf.c, line 1478
- sys/lib/libsa/minixfs3.c, 2 times
- tests/lib/libc/string/t_memchr.c, 13 times
- usr.bin/grep/file.c, 3 times
- usr.bin/indent/pr_comment.c, line 327
- usr.bin/sdpquery/print.c, 2 times
- usr.bin/sed/process.c, 2 times
- usr.bin/usbhidctl/usbhid.c, line 930
- usr.sbin/installboot/evboards.c, line 1093
- usr.sbin/timed/timed/readmsg.c, line 236