Files
Konrad Beckmann 20d7fefaf9 Import mikmod
2021-08-02 02:19:41 +02:00

20 lines
344 B
C

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <string.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;
}