usprintf - Man Page

Writes formatted data into a buffer. Allegro game programming library.


#include <allegro.h>

int usprintf(char *buf, const char *format, ...);


This function writes formatted data into the output buffer. A NULL character is written to mark the end of the string. You should try to avoid this function because it is very easy to overflow the destination buffer. Use uszprintf instead.

Return Value

Returns the number of characters written, not including the terminating null character.

See Also

uconvert(3), uszprintf(3), uvsprintf(3), exkeys(3)

Referenced By

exkeys(3), uszprintf(3), uvsprintf(3).

version 4.4.3 Allegro manual