Skip to content
Snippets Groups Projects
Commit 97a66488 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Forgot to add new string.c.

parent 6c0fc8b1
No related branches found
No related tags found
No related merge requests found
/*
* Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
#include "portable.h"
#include <stdlib.h>
#include <ac/string.h>
#include <ac/time.h>
#include "ldap-int.h"
char *
(ldap_pvt_strdup)( const char *s )
{
char *p;
int len;
len = strlen( s ) + 1;
if ( (p = (char *) malloc( len )) == NULL )
return( (char *)0 );
memcpy( p, s, len );
return( p );
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment