X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstring.h;h=ef70df00ce952cd3f6054a01450ba135d57086f8;hb=4116251e9bb6c386580d71d8c4afd2d0d08c6096;hp=a3a154d7f4c667ac2359d53a14084e4c99fab4bc;hpb=aa980e7f23430161549089ab9661f07d9db116c4;p=pdclib diff --git a/includes/string.h b/includes/string.h index a3a154d..ef70df0 100644 --- a/includes/string.h +++ b/includes/string.h @@ -1,7 +1,5 @@ /* $Id$ */ -/* Release $Name$ */ - /* String handling This file is part of the Public Domain C Library (PDCLib). @@ -11,11 +9,6 @@ #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> -#endif - #ifndef _PDCLIB_INT_H #define _PDCLIB_INT_H _PDCLIB_INT_H #include <_PDCLIB_int.h> @@ -26,7 +19,10 @@ 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 */ @@ -184,9 +180,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'). */