From: solar Date: Sun, 9 Jan 2005 13:47:58 +0000 (+0000) Subject: dos2unix X-Git-Tag: v0.2~7 X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=152fbc0b4bdc5362c8d65c3cdac3bd68040be599 dos2unix --- diff --git a/functions/string/strcspn.c b/functions/string/strcspn.c index 0417d51..c8a104e 100644 --- a/functions/string/strcspn.c +++ b/functions/string/strcspn.c @@ -10,16 +10,16 @@ #include -size_t strcspn( const char * src_1, const char * src_2 ) +size_t strcspn( const char * s1, const char * s2 ) { size_t len = 0; - const char * src_p; - while ( src_1[len] != '\0' ) + const char * p; + while ( s1[len] ) { - src_p = src_2; - while ( *src_p != '\0' ) + p = s2; + while ( *p ) { - if ( src_1[len] == *src_p++ ) + if ( s1[len] == *p++ ) { return len; }