ustrcpy(3alleg4)

πŸ’– ustrcpy β€” Allegro manual, section 3alleg4 πŸ’–

okay bestie, gather round, because we're doing a string copy and she is not the girl you want to be casual with. this is ustrcpy from the Allegro game programming library, and she's giving "does exactly what it says, which is kind of the problem." 🫢


✨ NAME ✨

ustrcpy β€” copies a string into another one. part of the Allegro game programming library. 🌸


✨ SYNOPSIS ✨

#include <allegro.h>

char *ustrcpy(char *dest, const char *src);

✨ DESCRIPTION ✨

so here's the tea β˜•: this function copies src into dest, and yes, it brings the terminating null character along for the ride β€” that null byte is part of the package, no extra charge. πŸ’…

but babe. please try to avoid this function because it is very easy to overflow the destination buffer. 😭 like, one wrong string and your memory is done. use ustrzcpy instead. fr fr.

✨ RETURN VALUE ✨

returns the value of dest. that's it, that's the whole answer. πŸŽ€


✨ SEE ALSO ✨


okay that's the whole page, you ate it, no crumbs left. πŸ‘‘

Allegro version 4.4.3 made this one happen, and it's filed under ustrcpy(3alleg4) in the Allegro manual β€” so if you ever forget her name, that's where she lives. bye bestie, go use ustrzcpy, ily πŸ¦‹πŸ’œ