]> pd.if.org Git - pdclib/blobdiff - string.h
Forgot the header guard on string.h. Bumped release date in Readme.txt.
[pdclib] / string.h
index 5aca81817ffbfc4c251f127c18e4c492345b0559..c63bab8dff7ba01b66eae343329542b4f330115c 100755 (executable)
--- 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