Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

usprintf(3alleg4) [opendarwin man page]

usprintf(3alleg4)						  Allegro manual						 usprintf(3alleg4)

NAME
usprintf - Writes formatted data into a buffer. Allegro game programming library. SYNOPSIS
#include <allegro.h> int usprintf(char *buf, const char *format, ...); DESCRIPTION
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(3alleg4), uszprintf(3alleg4), uvsprintf(3alleg4), exkeys(3alleg4) Allegro version 4.4.2 usprintf(3alleg4)

Check Out this Related Man Page

exkeys(3alleg4) 						  Allegro manual						   exkeys(3alleg4)

NAME
exkeys - How to get input from the keyboard in different ways. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example exkeys DESCRIPTION
This program demonstrates how to access the keyboard. The first part shows the basic use of readkey(). The second part shows how to extract the ASCII value. Next come the scan codes. The fourth test detects modifier keys like alt or shift. The fifth test requires some focus to be passed. The final step shows how to use the global key array to read simultaneous key presses. The last method to detect key presses are keyboard callbacks. This is demonstrated by installing a keyboard callback, which marks all pressed keys by drawing to a grid. SEE ALSO
END_OF_FUNCTION(3alleg4), END_OF_MAIN(3alleg4), LOCK_FUNCTION(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), acquire_screen(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), blit(3alleg4), clear_keybuf(3alleg4), clear_to_color(3alleg4), desktop_palette(3alleg4), font(3alleg4), install_keyboard(3alleg4), install_timer(3alleg4), key(3alleg4), key_shifts(3alleg4), key- board_lowlevel_callback(3alleg4), keypressed(3alleg4), makecol(3alleg4), readkey(3alleg4), rectfill(3alleg4), release_screen(3alleg4), rest(3alleg4), scancode_to_name(3alleg4), screen(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), textprintf_centre_ex(3alleg4), textprintf_ex(3alleg4), ureadkey(3alleg4), usprintf(3alleg4), ustrzncpy(3alleg4) Allegro version 4.4.2 exkeys(3alleg4)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Shopt -s histappend

What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file. # When the shell exits, append to the history file instead of overwriting it shopt -s histappend (3 Replies)
Discussion started by: cokedude
3 Replies

2. OS X (Apple)

Undeletable file

Greetings, I'm trying to delete a file with a weird name from within Terminal on a Mac. It's a very old file (1992) with null characters in the name: “␀␀Word FinderÂŽ Plus™”. Here are some examples of what I've tried: 12FX009:5 dpontius$ ls ␀␀Word FinderÂŽ Plus™ 12FX009:5 dpontius$ rm... (29 Replies)
Discussion started by: dpontius
29 Replies