]> arthur.barton.de Git - netatalk.git/blob - libatalk/compat/strdup.c
Initial revision
[netatalk.git] / libatalk / compat / strdup.c
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4
5 static int _strdup_dummy;
6
7 #ifdef ultrix
8 char *strdup(const char *string)
9 {
10   char *new;
11   
12   if (new = (char *) malloc(strlen(string) + 1))
13     strcpy(new, string);
14
15   return new;
16 }
17 #endif