char *strstr(const char *haystack, const char *needle);So you can say "search for a needle in haystack" and you'll never forget it.
Programming Tips - C/C++: the best way to remember the order of the parameters to strstr()
Date: 2008jul2
Update: 2025jun27
Language: C/C++
Q. C/C++: the best way to remember the order of the parameters to strstr()
A. The GNU man page says this: