/************************************************************* * File: lib/strdup.c * Purpose: Part of C runtime library * Author: Phil Bunce (pjb@carmel.com) * Revision History: * 970304 Start of revision history */ char *strdup(s) char *s; { char *p; p = (char *)malloc(strlen(s)+1); strcpy(p,s); return(p); }