strcspn - Finds length of the initial segment not containing any of the characters that are part of the mask.
strcspn(string,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.
{{ include("includes/strings.sn") }}
Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>
1.0 2014-09-09 21:24:14 laplante@sednove.com
Edit© 2024 extenso Inc. All rights reserved.