int strcspn(char *s,char *f) { int i; int j; for (i = 0;s[i];++i) for (j = 0;f[j];++j) if (s[i] == f[j]) return i; return i; }