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 strspn( const char * s1, const char * s2 ) { /* TODO */ };
10 /* PDPC code - unreviewed
21 if (*p1 == *p2) break;
24 if (*p2 == '\0') return ((size_t)(p1 - s1));
27 return ((size_t)(p1 - s1));