SysTutorials

Linux Manual Pages › Section 3

strnstr(3)

strnstr – locate a substring in a string

Library

Lb libbsd

Synopsis

In bsd/string.h Ft char * Fn strnstr const char *big const char *little size_t len

Description

The Fn strnstr function locates the first occurrence of the null-terminated string Fa little in the string Fa big , where not more than Fa len characters are searched. Characters that appear after a `