0x07. C - Even more pointers, arrays and strings; 5. strstr

preview_player
Показать описание
Write a function that locates a substring.

Prototype: char *_strstr(char *haystack, char *needle);
The _strstr() function finds the first occurrence of the substring needle in the string haystack. The terminating null bytes (\0) are not compared
Returns a pointer to the beginning of the located substring, or NULL if the substring is not found.
FYI: The standard library provides a similar function: strstr. Run man strstr to learn more.

linked source doc file

All 0x07. C - Even more pointers, arrays and strings videos
quiz questions
0. memset
1. memcpy
2. strchr
3. strspn
4. strpbrk
Рекомендации по теме
Комментарии
Автор

Please
I'm having issues with task 9

jameschinaza
join shbcf.ru