X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstring.h;h=599653a384539dd632cb0e0b8ee4a1195f152b97;hb=2d43dbb1c70aee6c3474c254c0a2302ef39c0c7a;hp=8c688e903cc0c77e352e8eb858b05b262e37d14e;hpb=ab6ee64b38cee9cd2ce9872714c77c19da9fb031;p=pdclib.old diff --git a/includes/string.h b/includes/string.h index 8c688e9..599653a 100644 --- a/includes/string.h +++ b/includes/string.h @@ -184,6 +184,13 @@ char * strerror( int errnum ) _PDCLIB_nothrow; */ size_t strlen( const char * s ) _PDCLIB_nothrow; +#if _PDCLIB_POSIX_MIN(2008098L) +/* Returns the length of the string s (excluding terminating '\0') or maxlen if + * no terminating '\0' is found in the first maxlen characters. + */ +size_t strnlen( const char * s, size_t maxlen ) _PDCLIB_nothrow; +#endif + #if _PDCLIB_POSIX_MIN(2008098L) || _PDCLIB_XOPEN_MIN(0) char * strdup( const char* src ) _PDCLIB_nothrow; char * strndup( const char* src, size_t n ) _PDCLIB_nothrow;