Files
evolution/libical/MacOS/strdup.c
Eric Busboom d6b0035a32 reparing damage from removing files
svn path=/trunk/; revision=3042
2000-05-15 06:18:21 +00:00

18 lines
260 B
C

#include "strdup.h"
#include <string.h>
#include <stdlib.h>
char *strdup(const char *s )
{
char *p;
if ( (p = (char *) malloc( strlen( s ) + 1 )) == NULL )
return( NULL );
strcpy( p, s );
return( p );
}