26f2bfde03
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28810 a1c6a512-1295-4272-9138-f99709370657
21 lines
370 B
C
21 lines
370 B
C
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include <string.h>
|
|
|
|
#include "mikmod_supp.h"
|
|
|
|
char *strstr(const char *haystack, const char *needle)
|
|
{
|
|
const char *scan;
|
|
size_t len;
|
|
char firstc;
|
|
|
|
firstc = *needle;
|
|
len = strlen(needle);
|
|
for (scan = haystack; *scan != firstc || strncmp(scan, needle, len); )
|
|
if (!*scan++)
|
|
return NULL;
|
|
return (char *)scan;
|
|
}
|