X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=string.h;h=c63bab8dff7ba01b66eae343329542b4f330115c;hp=5aca81817ffbfc4c251f127c18e4c492345b0559;hb=a1bf72a143e4756b80c8306e6eef3deee215546c;hpb=4821a6af8ca1c748a695e83c47028bca878d11fe diff --git a/string.h b/string.h index 5aca818..c63bab8 100755 --- a/string.h +++ b/string.h @@ -8,6 +8,9 @@ Permission is granted to use, modify, and / or redistribute at will. */ +#ifndef _PDCLIB_STRING_H +#define _PDCLIB_STRING_H _PDCLIB_STRING_H + #ifndef _PDCLIB_AUX_H #define _PDCLIB_AUX_H _PDCLIB_AUX_H #include <_PDCLIB_aux.h> @@ -153,13 +156,13 @@ char * strrchr( const char * s, int c ); consists only of characters from the character array s2. Returns the length of that substring. */ -size_t strspn( const char * s1, const char s2 ); +size_t strspn( const char * s1, const char * s2 ); /* Search the character array s1 for the substring in character array s2. Returns a pointer to that sbstring, or NULL. If s2 is of length zero, returns s1. */ -char * strstr( const char * s1, const char s2 ); +char * strstr( const char * s1, const char * s2 ); /* In a series of subsequent calls, parse a C string into tokens. On the first call to strtok(), the first argument is a pointer to the to-be- @@ -191,3 +194,4 @@ char * strerror( int errnum ); */ size_t strlen( const char * s ); +#endif