Xref: utzoo comp.sources.wanted:15404 alt.sources.wanted:957 Path: utzoo!utgpu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!dali.cs.montana.edu!masscomp!peora!tarpit!bilver!vicstoy!vickde From: vickde@vicstoy.UUCP (Vick De Giorgio) Newsgroups: comp.sources.wanted,alt.sources.wanted Subject: Re: What is strdup() supposed to do? Does anyone have a copy? Message-ID: <1991Feb21.233712.1946@vicstoy.UUCP> Date: 21 Feb 91 23:37:12 GMT References: <1991Feb17.164731.7564@onion.rain.com> <1991Feb18.154159.430@persoft.com> <1991Feb19.004526.16033@onion.rain.com> Organization: The Philosophers Stone BBS, Orlando FL Lines: 16 In article <1991Feb19.004526.16033@onion.rain.com> jeff@onion.rain.com (Jeff Beadles) writes: > >Untrue. What if sizeof(char) != 1? Yours will break, and mine will work. > >{note: I don't personally know of places where this isn't true, but then > again, some people think that sizeof (int) == sizeof (char *) :-} sizeof(char) is by definition 1 -- K&R pg 188. Correct me if I'm wrong (I'm sure someone will ;') but I don't think this has changed under ANSI. =V= -- Vick De Giorgio - vickde@vicstoy.UUCP -- I'd fly 10,000 miles to smoke a camel. UUCP - uunet!tarpit!bilver!vicstoy!vickde - The Philosopher's Stone Unix BBS, Orlando FL - (407) 299-3661 1200/2400 24 hours 8N1