Trim function
here is the original code from bcx
function Trim (char* str)
{
while(*S==32 || *S==9 || *S==10 || *S==11 || *S==13)
S++;
register int i = strlen(S);
while( i>0 && (S[i-1]==32 || S[i-1]==9 || S[i-1]==10
|| S[i-1]==11 || S[i-1]==13))
i--;
char *strtmp=BCX_TmpStr(i);
return (char*)memcpy(strtmp,S,i);
}
so i start trying to convert it like this
function Trim (char* str)
{
// while(*S==32 || *S==9 || *S==10 || *S==11 || *S==13)
// S++;
Ebx = str;
al = char[Ebx];
while(al == 32 or al == 9 or al == 10 or al == 11 or al == 13) // error here
{
Ebx++;
al = char[Ebx];
}
}
but it did not compiled any help please.
http://www.freewebs.com/ogremagic/index.htm