#include <stdio.h>
#include <string.h>
// size_t strspn ( const char * str1, const char * str2 );
// Returns the length of the initial portion of s1 which include only characters that are in s2
int main(void)
{
char s1[] = "123456F88";
char s2[] = "87932844981";
int i = strspn(s1, s2);
printf ("First %d digits\n", i);
return 0;
}
/*
run:
First 4 digits
*/