Path: utzoo!mnetor!uunet!husc6!mailrus!ames!killer!jfh From: jfh@killer.UUCP (The Beach Bum) Newsgroups: comp.lang.c Subject: Re: strcpy wars, jeez! A proposed resolution. Message-ID: <3805@killer.UUCP> Date: 12 Apr 88 21:49:22 GMT References: <7712@apple.Apple.Com> <7485@brl-smoke.ARPA> <10731@mimsy.UUCP> <7506@brl-smoke.ARPA> <4251@hoptoad.uucp> <6286@dhw68k.cts.com> <4215@ihlpf.ATT.COM> <6476@dhw68k.cts.com> <4309@ihlpf.ATT.COM> <6683@dhw68k.cts.com> Reply-To: jfh@killer.UUCP (The Beach Bum) Organization: Big "D" Home for Wayward Hackers Lines: 21 Summary: relying on implementation is dangerous and stupid. In article <6683@dhw68k.cts.com> david@dhw68k.cts.com (David H. Wolfskill) writes: >[I had suggested that strcpy() on overlapping objects ought to be >"implementation-defined," rather than "undefined," behavior. Liber >then wrote "If you have overlapping strings you have incorrect data." this is exactly what we don't need. the purpose of creating a standard is for all implementations of the standard to function identically. if each different implementation has a different behavior, all of which are being relied on quite heavily, then software will cease to be portable. "undefined" is "defined". stating that the behavior is unknown will force the user to not rely on questionable behavior, or to write the code herself to perform the copy in the correct fashion. - john. -- John F. Haugh II SNAIL: HECI Exploration Co. Inc. UUCP: ...!ihnp4!killer!jfh 11910 Greenville Ave, Suite 600 "You can't threaten us, we're Dallas, TX. 75243 the Oil Company!" (214) 231-0993 Ext 260