Xref: utzoo comp.sources.wanted:15383 alt.sources.wanted:954 Path: utzoo!utgpu!cs.utexas.edu!hellgate.utah.edu!caen!zaphod.mps.ohio-state.edu!wuarchive!uunet!mcsun!hp4nl!charon!piring.cwi.nl!guido From: guido@cwi.nl (Guido van Rossum) Newsgroups: comp.sources.wanted,alt.sources.wanted Subject: Re: What is strdup() supposed to do? Does anyone have a copy? Message-ID: Date: 21 Feb 91 19:09:03 GMT References: <1991Feb14.050716.9501@shibaya.lonestar.org> <1991Feb17.045913.17126@sbcs.sunysb.edu> <1991Feb17.164731.7564@onion.rain.com> Sender: news@cwi.nl Followup-To: comp.sources.wanted Lines: 10 jeff@onion.rain.com (Jeff Beadles) writes: >Strcpy could also return an error, but I don't think that I've ever seen >someone check for it. :-) Actually, it is documented behaviour (at least on some systems) that it returns NULL when the malloc fails. I have written code that assumes this. --Guido (what a silly thread this is!)