Article View: comp.std.c
Article #5478bcopy
From: John F. Wardale
Date: Fri, 09 Dec 1988 03:10
Date: Fri, 09 Dec 1988 03:10
29 lines
1355 bytes
1355 bytes
[Sorry it this isn't the "perfect" group for this, but y'all were
talking about index vs strchr so this can't be too far off.]
What does the following mean? [What should it do?]
char a[20];
/* first sample: */
bcopy (&a[0], &a[1], 19);
/* second sample: */
bcopy (&a[1], &a[0], 19);
BACKGROUND NOTES:
The vax-BSD 4.3 "man bcopy" doesn't mention this.
the SUN "man bcopy" says:
"Overlapping strings are handled correctly."
Emacs (a highly ported program) *ASSUMES* (needs/uses) this
overlaping semantic.
This is the libc bcopy, not the kernel version [that's one
VAX-instructon] or the kernel "ovbcopy"
--
John Wardale
... {seismo | harvard | rutgers | ames} ! {uwvax | cs.wisc.edu} ! astroatc!johnw
or astroatc!johnw@cs.wisc.edu
To err is human, to really foul up world news requires the net!
Technical Details
Message-ID:
<1356@astroatc.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!udel!rochester!rutgers!uwvax!astroatc!johnwReferences:
<9095@smoke.BRL.MIL> <9167@ihlpb.ATT.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!udel!rochester!rutgers!uwvax!astroatc!johnw From: johnw@astroatc.UUCP (John F. Wardale) Newsgroups: comp.std.c,comp.windows.x Subject: bcopy Message-ID: <1356@astroatc.UUCP> Date: 9 Dec 88 03:10:39 GMT References: <9095@smoke.BRL.MIL> <9167@ihlpb.ATT.COM> Reply-To: johnw@astroatc.UUCP (John F. Wardale) Followup-To: comp.std.c Organization: Astronautics Technology Cntr, Madison, WI Lines: 29