tgrekov-libft
HIVE libft Oct 2023
|
Definition in file ft_strnstr.c.
#include "libft.h"
Go to the source code of this file.
Functions | |
char * | ft_strnstr (const char *haystack, const char *needle, size_t len) |
Finds first occurence of needle in string haystack . | |
char * ft_strnstr | ( | const char * | haystack, |
const char * | needle, | ||
size_t | len | ||
) |
Finds first occurence of needle
in string haystack
.
[in] | haystack | Optionally null-terminated string haystack to search |
[in] | needle | Null-terminated string needle to find |
[in] | len | Maximum number of bytes to check |
char* | Pointer to the start of the first occurence of needle in haystack . If not found within len characters or before termination of haystack , returns NULL . |
Definition at line 33 of file ft_strnstr.c.