---
name: "str_copy"
section: "3diet"
platform: "linux"
package: "libowfat-dev"
version: "0.28-2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/str_copy/3diet"
---

# str\_copy(3diet)

copy an ASCIIZ string

## NAME

str\_copy - copy an ASCIIZ string

## SYNTAX

**#include \<str.h\>**

size\_t **str\_copy**(char\* *out*,const char\* *in*);

## DESCRIPTION

str\_copy copies the leading bytes of *in* to *out* up to and including the first occurrance of \\0.

str\_copy returns the number of bytes copied.

## SEE ALSO

[strlen(3)](/strlen/3.md)
