Path: utzoo!attcan!uunet!decwrl!ucbvax!ulysses!fox From: fox@research.att.com (David Fox) Newsgroups: comp.std.c++ Subject: Proposed addition to string library: strnew Message-ID: Date: 7 Sep 90 17:02:28 GMT Sender: netnews@ulysses.att.com Distribution: comp Organization: AT&T Bell Laboratories Lines: 7 I propose the following function be added to the standard string.h: inline char * strnew(const char *s) { return s ? strcpy(new char[strlen(s)+1], s) : 0; }