let's say this code:
Code:
char bufferx[] = "abc~defghi"
char buf[111];
char *a_full_parm(const char *bufferx)
{
int i =0;
int j = 0;
int bkm;
for(i=0; i< 256; i++)
{
if (bufferx[i] == '~')
{
bkm= i;
for(j=0; j < bkm ; j++)
{
buf[j] = bufferx[j];
}
buf[j] = '\0';
return buf;
}
}
}
how i need to match it
if (full_parm(buffer ) == "abc") <=== BIG PROBLEM
{do something}
BIG PROBLEM :
but i cant match it coz itz not exactly the same??
do i need to do casting??
how do i go about doing the matching to "abc" here?