X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstring.h;h=00309f520910d0a0601fe79181d109164d1eae3f;hb=217a2f477ad6dbbac816981589ee2f5a81dffd67;hp=c5f74b5e50729bf3f97bedf149ca460fcba74285;hpb=88ada2223031864fa3057b923ee7a03d6a710785;p=pdclib.old diff --git a/includes/string.h b/includes/string.h index c5f74b5..00309f5 100644 --- a/includes/string.h +++ b/includes/string.h @@ -8,11 +8,8 @@ #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 +_PDCLIB_BEGIN_EXTERN_C #ifndef _PDCLIB_SIZE_T_DEFINED #define _PDCLIB_SIZE_T_DEFINED _PDCLIB_SIZE_T_DEFINED @@ -187,4 +184,10 @@ char * strerror( int errnum ); */ size_t strlen( const char * s ); +#if _PDCLIB_POSIX_MIN(2008098L) || _PDCLIB_XOPEN_MIN(0) +char * strdup( const char* src ); +char * strndup( const char* src, size_t n ); +#endif + +_PDCLIB_END_EXTERN_C #endif