Hello
I am trying to get this function to work...
int error(const char* s)
{
int f=1;
while (*s!='/0')
{
if(*s=='/')
{
f=0;
return(f);
}
s++;
}
return f;
}
I want to find out if in the string tat i am passing there is a character "/"....But i am getting a runtime error....wat am i doing wrong? Kindly help..
Thanks in advance...