Or login with:
s as long as the characters from s do not occur in string charset (it spans the complement of charset).
#include <stdio.h> #include <string.h> int main() { char s[20] = "abcde1010101", t[3] = "01"; printf("The first binary digit of s is at position: %d.\n", strcspn(s, t)); return 0; }
The first binary digit of s is at position: 5.You must login to leave a messge