X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstring.h;h=3bf90f5d335b74e49c74df8817d2f2b2c6096422;hb=642e624903e01e2e3809f85f65cfb22e967e122c;hp=c8ac5c619d9697a68a59dd8a1d0c3597d2424354;hpb=fed8fdd8d3e229f8910d82d90e2cd249947b58e2;p=pdclib diff --git a/includes/string.h b/includes/string.h index c8ac5c6..3bf90f5 100644 --- a/includes/string.h +++ b/includes/string.h @@ -1,7 +1,3 @@ -/* $Id$ */ - -/* Release $Name$ */ - /* String handling This file is part of the Public Domain C Library (PDCLib). @@ -11,17 +7,17 @@ #ifndef _PDCLIB_STRING_H #define _PDCLIB_STRING_H _PDCLIB_STRING_H -#ifndef _PDCLIB_INT_H -#define _PDCLIB_INT_H _PDCLIB_INT_H -#include <_PDCLIB_int.h> -#endif +#include "_PDCLIB_int.h" #ifndef _PDCLIB_SIZE_T_DEFINED #define _PDCLIB_SIZE_T_DEFINED _PDCLIB_SIZE_T_DEFINED typedef _PDCLIB_size_t size_t; #endif +#ifndef _PDCLIB_NULL_DEFINED +#define _PDCLIB_NULL_DEFINED _PDCLIB_NULL_DEFINED #define NULL _PDCLIB_NULL +#endif /* String function conventions */ @@ -179,9 +175,8 @@ void * memset( void * s, int c, size_t n ); /* Map an error number to a (locale-specific) error message string. Error numbers are typically errno values, but any number is mapped to a message. TODO: PDCLib does not yet support locales. - TODO: strerror() not yet implemented. -char * strerror( int errnum ); */ +char * strerror( int errnum ); /* Returns the length of the string s (excluding terminating '\0'). */