---
name: "memchr"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/memchr/9"
---

# memchr(9)

Find a character in an area of memory.

## NAME

memchr - Find a character in an area of memory.

## SYNOPSIS

**void \* memchr(const void \*** *s***, int** *c***, size\_t** *n***);**

## ARGUMENTS

*s*

The memory area

*c*

The byte to search for

*n*

The size of the area.

## DESCRIPTION

returns the address of the first occurrence of *c*, or **NULL** if *c* is not found

## COPYRIGHT
