strcspn - Finds length of the initial segment not containing any of the characters that are part of the mask.
strcspn(str,mask,start,length)
in: res=<{strcspn('abcd', 'apple', -3)}>. out: res=3. in: res=<{strcspn('abcd', 'apple')}>. out: res=0. in: res=<{strcspn('hello', 'world')}>. out: res=2.
Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>
1.0 2014-09-09 21:24:14 laplante@sednove.com