uvsprintf(3)
β¨ 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
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms