Scroll to navigation

STRNSTR(9) Basic C Library Functions STRNSTR(9)

NAME

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

SYNOPSIS

char * strnstr(const char * s1, const char * s2, size_t len);

ARGUMENTS

const char * s1
The string to be searched

const char * s2

The string to search for

size_t len

the maximum number of characters to search

COPYRIGHT

July 2017 Kernel Hackers Manual 4.11