strspn.c

The libc implementation

Author

Martin ‘Solar’ Baute

License

Public Domain

Summary
strspn.cThe libc implementation
Functions
strspnTests characters in s1 for an occurance in s2 until no match is found

Functions

strspn

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

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

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

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