
HELP, I am having problems with pointer...
Folks,
I am working on learning C and am pulling my hair out over this one. For some
reason I getting two warnings:
Nonportable pointer conversion in function Split
Possibly incorrect assignment in function Split
I have NO idea why! This is an OS/2 code so PCHAR is char * and USHORT is a
short int. Here is the part that is bothing me:
CHAR *Split(PCHAR pchr, PCHAR end)
{
PCHAR path;
USHORT i;
for(i=0;pchr[i];i++) pchr[i] = toupper (pchr[i]);
for(i=0; end[i];i++) end[i] = toupper ( end[i]);
path = strstr( pchr, end );
if( path ) { <<<< this is the pointer that isn't working
and is giving me the error!
Thanks a million for the help:)
Sam
P.S. please E-Mail responces:)