Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

strspn - Returns the index of the first character in str1 that does not match any of the characters in str2 in C

  #include <string.h>
  #include <stdio.h>
  int main(void)
  {
    int len;

    len = strspn("this is a test", "hi");
    printf("%d", len);

    return 0;
  }




Output:
0