1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
8 size_t strcspn( const char * s1, const char * s2 ) { /* TODO */ };
10 /* PDPC code - unreviewed
21 if (*p1 == *p2) return ((size_t)(p1 - s1));
26 return ((size_t)(p1 - s1));