Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!sdd.hp.com!hplabs!hpcc01!hpcuhb!hpcllla!hpclisp!hpclscu!shankar From: shankar@hpclscu.HP.COM (Shankar Unni) Newsgroups: comp.std.c++ Subject: Re: Proposed addition to string library: strnew Message-ID: <77210002@hpclscu.HP.COM> Date: 10 Sep 90 23:39:13 GMT References: Organization: Hewlett-Packard Calif. Language Lab Lines: 9 > inline char * > strnew(const char *s) > { > return s ? strcpy(new char[strlen(s)+1], s) : 0; > } Check out "strdup()". --- Shankar.