C Run-Time Library Reference
strcspn
length of character segment in one string but not the other
Synopsis
#include <string.h>
size_t strcspn(const char *s1, const char *s2);
Description
The
function returns the length of the initial segment of
strcspn
consists entirely of characters not in the string pointed to by
string pointed to by
characters in the string is not significant.
Error Conditions
The
function does not return an error condition.
strcspn
Example
#include <string.h>
char *ptr1, *ptr2;
size_t len;
ptr1 = "Tried and Tested";
ptr2 = "aeiou";
len = strcspn (ptr1, ptr2);
See Also
strlen,
strspn
3-126
is treated as a set of characters. The order of the
s2
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
/* len = 2 */
for ADSP-219x DSPs
which
s1
The
s2.
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers