strcpy

William C. Anderson wca at ut-emx.UUCP
Wed Mar 23 00:49:10 AEST 1988


In article <10753 at mimsy.UUCP>, chris at mimsy.UUCP (Chris Torek) writes:

-> In article <7506 at brl-smoke.ARPA> gwyn at brl-smoke.ARPA (Doug Gwyn) writes:

-> ->This usage was never a good idea, because a valid implementation of
-> ->strcpy() would be to copy right-to-left rather than left-to-right

-> `That turns out not to be the case'---or rather, are you certain?

Chris is right here, Doug.  For example, the ndbm(3) routines in 4.3BSD
depend upon bcopy() doing the correct ordering in cases of overlap.
Luckily, it is simple to do the code correctly.

William Anderson - University of Texas Computation Center - wca at emx.utexas.edu



More information about the Comp.lang.c mailing list