X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fstring.c;h=df8069ccaabe80c4e9da084decf7e1db1f711032;hb=d2b05a3858822df66785b4a0939204b10ac1c47f;hp=d785f8d3bb344781e40b99e8a8677faf8b7de658;hpb=5c63fd55b5886e0b0ed7b3e28871d73aed260c4e;p=openldap diff --git a/libraries/libldap/string.c b/libraries/libldap/string.c index d785f8d3bb..df8069ccaa 100644 --- a/libraries/libldap/string.c +++ b/libraries/libldap/string.c @@ -1,8 +1,14 @@ +/* $OpenLDAP$ */ /* - * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ +/* + * Locale-specific 1-byte character versions + * See utf-8.c for UTF-8 versions + */ + #include "portable.h" #include @@ -91,20 +97,6 @@ char *(ldap_pvt_strtok)( char *str, const char *delim, char **pos ) return str; } -char * -(ldap_pvt_strdup)( const char *s ) -{ - char *p; - size_t len = strlen( s ) + 1; - - if ( (p = (char *) malloc( len )) == NULL ) { - return( NULL ); - } - - memcpy( p, s, len ); - return( p ); -} - char * ldap_pvt_str2upper( char *str ) {