strcspn

strcspn -- Find length of initial segment not matching mask

Description

int strcspn ( string str1, string str2)