bcopy(3)

bcopy3

Copy byte string

Usage

#include <strings.h>

void

bcopy(const void *src, void *dst, size_t len);

Library

Standard C Library (libc, -lc)

Overview

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.

Releases

163 releases since Mac OS X 10.0; the text changed 6 times.

  1. 10.0–10.1.5
  2. 10.2–10.2.8
  3. 10.3–10.3.9
  4. 10.4–10.4.11
  5. 10.5–10.6.8
  6. 10.7–10.8.5
  7. 10.9–26.5

History

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.

bcopy() was deprecated in IEEE Std 1003.1-2001 (“POSIX.1”) and removed in IEEE Std 1003.1-2008 (“POSIX.1”).

From Libc 1752.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.