Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!biar!trebor From: trebor@biar.UUCP (Robert J Woodhead) Newsgroups: comp.lang.c Subject: Re: Strcpy fun w/ Ultrix Message-ID: <511@biar.UUCP> Date: 29 Apr 89 05:37:45 GMT References: <9300002@scsmo1.UUCP> Reply-To: trebor@biar.UUCP (Robert J Woodhead) Organization: Biar Games, Inc. Lines: 13 In article <9300002@scsmo1.UUCP> tim@scsmo1.UUCP writes: >The solution was: >strcpy(x->name=malloc(strlen(in)+1),in); Er, does Ultrix have _strdup_? You could just say: x->name=strdup(in); -- Robert J Woodhead, Biar Games, Inc. ...!uunet!biar!trebor | trebor@biar.UUCP "The NY Times is read by the people who run the country. The Washington Post is read by the people who think they run the country. The National Enquirer is read by the people who think Elvis is alive and running the country..."