BCOPY(9)
π BCOPY(9) β copy byte string π
okay so this icon is from the Kernel Developer's Manual, and bestie... itβs giving βlegacy API thatβs about to leave the group chat.β π No cap.
πΈ NAME πΈ
bcopyβ copy byte string
β¨ SYNOPSIS β¨
#include <sys/systm.h>
void
bcopy(const void *src, void *dst, size_t len);
π¦ DESCRIPTION π¦
The bcopy() interface is obsolete. Do not add new code using it. It will soon be purged. Use memcpy(9) instead. (And yes, the bcopy() function is now a macro for memcpy(9).) π
The bcopy() function copies len bytes from string src to string dst. Simple, right? π«Ά
β οΈ unlikebcopy(3), the two strings must not overlap! In the traditional BSD kernel, overlapping copies were handled by the now-purgedovbcopy()function. If you need to copy overlapping data, seememmove(9). fr fr, donβt ignore this one.
If len is zero, no bytes are copied. periodt. β¨
π SEE ALSO π
mwah π β this page is from Debian, dated July 7, 2001, and itβs literally BCOPY(9). π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 1990, 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms