strcspn.c

The libc implementation

Author

Martin ‘Solar’ Baute

License

Public Domain

Summary
strcspn.cThe libc implementation
Functions
strcspnTests characters in s1 for an occurance in s2 until a match is found

Functions

strcspn

size_t strcspn(const char *s1,
const char *s2)

Tests characters in s1 for an occurance in s2 until a match is found

Returns the amount of characters from the beginning of s1 that do NOT occur in s2

size_t strcspn(const char *s1,
const char *s2)
Tests characters in s1 for an occurance in s2 until a match is found