mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
19 lines
293 B
C
19 lines
293 B
C
#if defined( ultrix ) || defined( nextstep )
|
|
|
|
#include <string.h>
|
|
|
|
|
|
char *strdup( char *s )
|
|
{
|
|
char *p;
|
|
|
|
if ( (p = (char *) malloc( strlen( s ) + 1 )) == NULL )
|
|
return( NULL );
|
|
|
|
strcpy( p, s );
|
|
|
|
return( p );
|
|
}
|
|
|
|
#endif /* ultrix || nextstep */
|