Query: uszprintf
OS: centos
Section: 3alleg4
Links: centos man pages all man pages
Forums: forum home forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
uszprintf(3alleg4) Allegro manual uszprintf(3alleg4)NAMEuszprintf - Writes formatted data into a buffer, specifying size. Allegro game programming library.SYNOPSIS#include <allegro.h> int uszprintf(char *buf, int size, const char *format, ...);DESCRIPTIONThis function writes formatted data into the output buffer, whose length in bytes is specified by `size' and which is guaranteed to be NULL terminated. Example: char buffer[10]; int player_score; ... uszprintf(buffer, sizeof(buffer), "Your score is: %d", player_score);RETURN VALUEReturns the number of characters that would have been written without eventual truncation (like with usprintf), not including the terminat- ing null character.SEE ALSOuconvert(3alleg4), usprintf(3alleg4), uvszprintf(3alleg4), exgui(3alleg4) Allegro version 4.4.2 uszprintf(3alleg4)