]> arthur.barton.de Git - netatalk.git/blob - libatalk/compat/strdup.c
massive commenting/autoconf changes
[netatalk.git] / libatalk / compat / strdup.c
1 /*
2  * $Id: strdup.c,v 1.3 2001-06-29 14:14:46 rufustfirefly Exp $
3  */
4
5 #ifdef HAVE_CONFIG_H
6 #include "config.h"
7 #endif /* HAVE_CONFIG_H */
8
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <string.h>
12
13 static int _strdup_dummy;
14
15 #ifdef ultrix
16 char *strdup(const char *string)
17 {
18   char *new;
19   
20   if (new = (char *) malloc(strlen(string) + 1))
21     strcpy(new, string);
22
23   return new;
24 }
25 #endif /* ultrix */