X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstring.h;h=636231929ba351fc668aac3d76832325bcc9477e;hb=2d1189fbd0b0cbf965075ff6c13d5e446d9bb107;hp=d2b22e198c60e9dc9043aad3c0b04dd42573327f;hpb=97dd2fddbdb56005b16a1b0aa19ed15cd77269fc;p=pdclib.old diff --git a/includes/string.h b/includes/string.h index d2b22e1..6362319 100644 --- a/includes/string.h +++ b/includes/string.h @@ -41,7 +41,7 @@ void * memcpy( void * _PDCLIB_restrict s1, const void * _PDCLIB_restrict s2, siz area pointed to by s1. The two areas may overlap. Returns the value of s1. */ -void * memmove( void * _PDCLIB_restrict s1, const void * _PDCLIB_restrict s2, size_t n ); +void * memmove( void * s1, const void * , size_t n ); /* Copy the character array s2 (including terminating '\0' byte) into the character array s1. @@ -184,8 +184,9 @@ char * strerror( int errnum ); */ size_t strlen( const char * s ); -#ifdef _PDCLIB_POSIX_EX +#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