Contact: aviboots(AT)netvision.net.il
39,870 questions
51,793 answers
573 users
#include <stdio.h> #include <string.h> int main() { char a[] = "abcd"; char b[] = "xyz"; char c[] = "abcdxyz"; if (strstr(c, a) && strstr(c, b)) puts("yes"); else puts("no"); return 0; } /* run: yes */