bcopy

John F. Wardale johnw at astroatc.UUCP
Fri Dec 9 13:10:39 AEST 1988


[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 at cs.wisc.edu
To err is human, to really foul up world news requires the net!



More information about the Comp.std.c mailing list