diff options
author | Eric Busboom <ericb@src.gnome.org> | 2000-05-15 14:18:21 +0800 |
---|---|---|
committer | Eric Busboom <ericb@src.gnome.org> | 2000-05-15 14:18:21 +0800 |
commit | d6b0035a325d060d7f175705c33b0a2d7b60e533 (patch) | |
tree | 2ee94e89f94b416cc04a3e8860b1205377397fde /libical/MacOS/strdup.c | |
parent | f8ff932ae3149c285acea3977a50596749d38584 (diff) | |
download | gsoc2013-evolution-d6b0035a325d060d7f175705c33b0a2d7b60e533.tar gsoc2013-evolution-d6b0035a325d060d7f175705c33b0a2d7b60e533.tar.gz gsoc2013-evolution-d6b0035a325d060d7f175705c33b0a2d7b60e533.tar.bz2 gsoc2013-evolution-d6b0035a325d060d7f175705c33b0a2d7b60e533.tar.lz gsoc2013-evolution-d6b0035a325d060d7f175705c33b0a2d7b60e533.tar.xz gsoc2013-evolution-d6b0035a325d060d7f175705c33b0a2d7b60e533.tar.zst gsoc2013-evolution-d6b0035a325d060d7f175705c33b0a2d7b60e533.zip |
reparing damage from removing files
svn path=/trunk/; revision=3042
Diffstat (limited to 'libical/MacOS/strdup.c')
-rw-r--r-- | libical/MacOS/strdup.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libical/MacOS/strdup.c b/libical/MacOS/strdup.c new file mode 100644 index 0000000000..ae60fee3df --- /dev/null +++ b/libical/MacOS/strdup.c @@ -0,0 +1,17 @@ + +#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 ); +} |