42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
my_strstr.c File Reference

The file containing the my_strstr function. More...

#include "my.h"

Functions

char * my_strstr (char *str, char const *to_find)
 Search a string (to_find) on another (str) and returns the address of the first occurrence.
 

Detailed Description

The file containing the my_strstr function.

Author
Nicolas TORO

Function Documentation

◆ my_strstr()

char * my_strstr ( char * str,
char const * to_find )

Search a string (to_find) on another (str) and returns the address of the first occurrence.

Parameters
strThe string to be scanned
to_findThe string to search in
Returns
char* The address of the first occurrence of the string to_find in the string str, NULL otherwise
Author
Nicolas TORO