Linux implementation. Include changes for gcc x64.

This commit is contained in:
LuisAntonRebollo 2015-01-24 22:08:26 +01:00
parent 4e52824a42
commit 4e9034854d
56 changed files with 1108 additions and 3075 deletions

View file

@ -27,9 +27,9 @@
#include <stdlib.h>
char *stristr(char *szStringToBeSearched, const char *szSubstringToSearchFor)
const char *stristr(const char *szStringToBeSearched, const char *szSubstringToSearchFor)
{
char *pPos = NULL;
const char *pPos = NULL;
char *szCopy1 = NULL;
char *szCopy2 = NULL;
@ -55,7 +55,7 @@ char *stristr(char *szStringToBeSearched, const char *szSubstringToSearchFor)
return NULL;
}
pPos = strstr(szCopy1, szCopy2);
pPos = strstr((const char*)szCopy1, (const char*)szCopy2);
if ( pPos != NULL ) {
// map to the original string