str_copy(3)

πŸ“¦
version 0.34 Β· 3 versions
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing

πŸ’– NAME πŸ’–

Okay so bestie, this is the str_copy(3) page from the Library Functions Manual β€” and its whole job is literally copying an ASCIIZ string. Iconic, lowkey simple, we love that for us. ✨

πŸŽ€ SYNTAX πŸŽ€

#include <libowfat/str.h>

size_t str_copy(char* out,const char* in);

No cap, that's the exact signature. πŸ’…

🌸 DESCRIPTION 🌸

str_copy copies the leading bytes of in into out, going all the way up to and including the first occurrance of \0. Periodt. 🫢

It returns the number of bytes copied β€” and that count does not include the \0. Very important, don't forget it. πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹


That's the whole vibe, bestie! πŸ’– The footer here is just str_copy(3) β€” no source, version, or date listed, so that's all the sign-off I can give you. Mwah! πŸ’…πŸŽ€