UUID_COPY(3)

πŸ’– UUID_COPY(3) β€” like, the copy-paste moment for UUIDs πŸ’–

okay so before we even start: this is a page from the Programmers Manual, section 3 (that's the library-functions girlies ✨). and bestie, this one is short β€” it's giving "one job, does it well, leaves" and honestly? respect. 🫢


✨ NAME ✨

uuid_copy β€” copy a UUID value. that's it. that's the whole gig. πŸ’…


✨ SYNOPSIS ✨

#include <uuid.h>

void uuid_copy(uuid_t dst, const uuid_t src);

so you gotta pull in <uuid.h> first β€” no header, no vibes. πŸ“š


✨ DESCRIPTION ✨

the uuid_copy() function copies the UUID variable src to dst. πŸŽ€

that's literally it, no cap. one UUID goes in, the same UUID comes out the other side, dst is now that girl. it's the most low-key iconic function in the whole library β€” no parsing, no generating, no drama, just a handoff. πŸ¦‹


✨ RETURN VALUE ✨

plot twist: it doesn't return anything (it's void, she's mysterious like that πŸ’€). instead, the copied UUID is returned in the location pointed to by dst. so like, look at dst, that's where your prize is. πŸ‘‘


✨ AUTHORS ✨

Theodore Y. Ts’o β€” thank you for your service, king πŸ‘‘βœ¨


✨ SEE ALSO ✨

the whole UUID friend group, fr fr β€” go say hi to:


✨ REPORTING BUGS ✨

found a bug? 😭 don't suffer in silence, bestie β€” for bug reports, use the issue tracker at <https://github.com/util-linux/util-linux/issues>. they wanna hear from you, i promise. 🌸


✨ AVAILABILITY ✨

the libuuid library is part of the util-linux package since version 2.15.1. πŸ—“οΈ you can download it from the Linux Kernel Archive at <https://www.kernel.org/pub/linux/utils/util-linux/>. go get your girl. 🧚


ok that's genuinely the whole page πŸ’œ tiny page, huge heart. go copy some UUIDs, you're gonna slay. 🌈

sign-off era πŸŽ€ β€” this little masterpiece is from util-linux 2.41.6, dated 2026-08-31. mwah, bye bestie! πŸ’•πŸ’…

πŸ“¦ where this page comes from