Contact: aviboots(AT)netvision.net.il
39,948 questions
51,890 answers
573 users
#include <stdio.h> #include <string.h> int main() { char s[50] = "c python c++ java c++ php"; printf("%s\n", strstr(s, "c++")); printf("index = %i\n", strstr(s, "c++") - s); } /* run: c++ java c++ php index = 9 */