strcspn


Obtain the length of the start portion that does not include the specified character string among the strings

[Classification]

Standard library

[Syntax]

#include <string.h>

size_t __fat strcspn(const char __near *s1, const char __near *s2);

size_t __fat _COM_strcspn_ff(const char __far *s1, const char __far *s2);

[Return value]

Returns the length of the portion that has been found.

[Description]

This function obtains the length of the maximum and first portion consisting of characters missing from the character string indicated by s2 (except the null character (\0) at the end) in the character string indicated by s1.