#include <string.h> #include <stdio.h> int main(void) { int len; len = strcspn("this is a test", "ab"); printf("%d", len); return 0; }
8