logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

uszprintf - Writes formatted data into a buffer, specifying size. Allegro game programming library.

Description

       This  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);

Name

       uszprintf - Writes formatted data into a buffer, specifying size. Allegro game programming library.

Return Value

       Returns the number of characters that would have been written  without  eventual  truncation  (like  with
       usprintf), not including the terminating null character.

See Also

uconvert(3alleg4), usprintf(3alleg4), uvszprintf(3alleg4), exgui(3alleg4)

Allegro                                           version 4.4.3                               uszprintf(3alleg4)

Synopsis

#include<allegro.h>intuszprintf(char*buf,intsize,constchar*format,...);

See Also