X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstring.h;h=c5f74b5e50729bf3f97bedf149ca460fcba74285;hb=0fa6394bc70eab55e0e38703a31a3072232c0729;hp=f6f3e5db701faa522077217897b7eb9c4af1a569;hpb=8a70c7a124624ac1d2a5125497bf9a76556e8b11;p=pdclib diff --git a/includes/string.h b/includes/string.h index f6f3e5d..c5f74b5 100644 --- a/includes/string.h +++ b/includes/string.h @@ -1,8 +1,6 @@ /* $Id$ */ -/* Release $Name$ */ - -/* String handling +/* 7.21 String handling This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. @@ -11,19 +9,20 @@ #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> #endif +#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 */ @@ -181,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'). */