]> pd.if.org Git - pdclib.old/blobdiff - includes/string.h
Import dlmalloc (public domain) as a malloc implementation. Add stub opt/notime
[pdclib.old] / includes / string.h
index 2aa7aaedb41206750ca1beac9a1c252b1e9c3fe5..d2b22e198c60e9dc9043aad3c0b04dd42573327f 100644 (file)
@@ -1,6 +1,6 @@
 /* $Id$ */
 
-/* String handling <string.h>
+/* 7.21 String handling <string.h>
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
@@ -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
@@ -180,12 +177,16 @@ 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').
 */
 size_t strlen( const char * s );
 
+#ifdef _PDCLIB_POSIX_EX
+char * strdup( const char* src );
+#endif
+
+_PDCLIB_END_EXTERN_C
 #endif