Hi, I am really new to C.
I want to use the strpos function but it is telling me it doesnt exist?
Hi, I am really new to C.
I want to use the strpos function but it is telling me it doesnt exist?
Yes. It's called strstr
, related to strpos
like (pseudo-code):
strpos(str, target) {
res = strstr(str, target);
if (res == NULL) return false;
else return res - str;
}