I took a C book to study, however, it is a bit outdated, and I came across the following code:
#include<stdio.h>
is_in(char *s, char c);
void main(void){
is_in("olac", "ola");
}
is_in(char *s, char c){
while(*s)
if(*s == c) return 1;
else s++;
return 0;
}
link
Can someone help me?