1/*
2 * $Id: strdup.c,v 1.4 2003-02-17 01:51:08 srittau 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#ifdef ultrix
14char *strdup(const char *string)
15{
16  char *new;
17
18  if (new = (char *) malloc(strlen(string) + 1))
19    strcpy(new, string);
20
21  return new;
22}
23#endif /* ultrix */
24