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