Contact: aviboots(AT)netvision.net.il
41,201 questions
53,702 answers
573 users
#include <stdio.h> #include <string.h> int main() { char s[] = "xyz c c++ c# 930 java python"; for (int i = 0; i < strspn(s, "abcxyzdef"); i++) { printf("%c", s[i]); } return 0; } /* run: xyz */