GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
BCOPY(3) FreeBSD Library Functions Manual BCOPY(3)

bcopy
copy byte string

Standard C Library (libc, -lc)

#include <strings.h>
void
bcopy(const void *src, void *dst, size_t len);

The bcopy() function copies len bytes from string src to string dst. The two strings may overlap. If len is zero, no bytes are copied.

memccpy(3), memcpy(3), memmove(3), strcpy(3), strncpy(3)

A bcopy() function appeared in 4.2BSD. Its prototype existed previously in <string.h> before it was moved to <strings.h> for IEEE Std 1003.1-2001 (“POSIX.1”) compliance.
IEEE Std 1003.1-2008 (“POSIX.1”) removes the specification of bcopy() and it is marked as LEGACY in IEEE Std 1003.1-2004 (“POSIX.1”). New programs should use memmove(3). If the input and output buffer do not overlap, then memcpy(3) is more efficient. Note that bcopy() takes src and dst in the opposite order from memmove() and memcpy().
August 24, 2015 FreeBSD 12.0-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.