---
name: "strchrnul"
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/strchrnul/9"
---

# strchrnul(9)

Find and return a character in a string, or end of string

## NAME

strchrnul - Find and return a character in a string, or end of string

## SYNOPSIS

**char \* strchrnul(const char \*** *s***, int** *c***);**

## ARGUMENTS

*s*

The string to be searched

*c*

The character to search for

## DESCRIPTION

Returns pointer to first occurrence of 'c' in s. If c is not found, then return a pointer to the null byte at the end of s.

## COPYRIGHT
