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

# strnstr(9)

Find the first substring in a length-limited string

## NAME

strnstr - Find the first substring in a length-limited string

## SYNOPSIS

**char \* strnstr(const char \*** *s1***, const char \*** *s2***, size\_t** *len***);**

## ARGUMENTS

*s1*

The string to be searched

*s2*

The string to search for

*len*

the maximum number of characters to search

## COPYRIGHT
