libft
Loading...
Searching...
No Matches
ft_strnstr.c File Reference
#include "libft.h"

Go to the source code of this file.

Functions

char * ft_strnstr (const char *haystack, const char *needle, size_t len)
 Search string from string.
 

Function Documentation

◆ ft_strnstr()

char * ft_strnstr ( const char *  haystack,
const char *  needle,
size_t  len 
)

Search string from string.

Searches string from a string and returns the address of the start of the found string.

Parameters
haystackString
needleString
lenHow many char to check
Returns
char* Address of the found string

Definition at line 18 of file ft_strnstr.c.