strdup.c.svn-base
btmux/src/.svn/text-base/strdup.c.svn-base · 250 B
From the archive btonline-btechmux-0.6-rc1.tbz2
Download the archive « Back to the archive contents
/*
* strdup.c - For systems like Ultrix that don't have it.
*/
#include "copyright.h"
#include "config.h"
char *strdup(const char *s)
{
char *result;
result = (char *) malloc(strlen(s) + 1);
strcpy(result, s);
return result;
}