AtomSoft
Well-Known Member
Would it be wise to create my own string compare function?
For instance:
You think this would give me any problems? It seems to work nice and fast. sometimes i just dont like including files or just dont understand why some things are overcomplicated.
For instance:
Code:
char strCompare(char *str1,char *str2, unsigned char len)
{
unsigned char x = 0;
for(x=0;x<len;x++)
{
if(*str1++ != *str2++)
return -1;
}
return 0;
}
You think this would give me any problems? It seems to work nice and fast. sometimes i just dont like including files or just dont understand why some things are overcomplicated.