uvsprintf(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ NAME ✨

bestie, this is the uvsprintf(3) manual page, and she is literally here to write formatted data into a buffer, using variable arguments. She's part of the Allegro game programming library. πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

int uvsprintf(char *buf, const char *format, va_list args);

🌸 DESCRIPTION 🌸

okay so the way that this is like usprintf() is that you pass the variable argument list directly, instead of the arguments themselves. You can use it to implement printf like functions, also called variadic functions. iykyk. πŸ’…

not me warning you, but you should try to avoid this function because it is very easy to overflow the destination buffer. Use uvszprintf instead. periodt. 🫢

πŸ‘‘ RETURN VALUE πŸ‘‘

She returns the number of characters written, not including the terminating null character. No cap, the null terminator does not get counted. ✨

🌈 SEE ALSO 🌈


later bestie πŸ’œ this page comes from the Allegro manual, version 4.4.3, and the footer just says uvsprintf(3) β€” no date on this one, just vibes. πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from