Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ustrdup(3alleg4) [opendarwin man page]

ustrdup(3alleg4)						  Allegro manual						  ustrdup(3alleg4)

NAME
ustrdup - Duplicates a string. Allegro game programming library. SYNOPSIS
#include <allegro.h> char *ustrdup(const char *src) DESCRIPTION
This functions copies the null-terminated string `src' into a newly allocated area of memory, effectively duplicating it. Example: void manipulate_string(const char *input_string) { char *temp_buffer = ustrdup(input_string); /* Now we can modify temp_buffer */ ... RETURN VALUE
Returns the newly allocated string. This memory must be freed by the caller. Returns NULL if it cannot allocate space for the duplicated string. SEE ALSO
_ustrdup(3alleg4), uconvert(3alleg4), ustrsize(3alleg4), ustrsizez(3alleg4), exconfig(3alleg4) Allegro version 4.4.2 ustrdup(3alleg4)

Check Out this Related Man Page

exconfig(3alleg4)						  Allegro manual						 exconfig(3alleg4)

NAME
exconfig - Using the configuration routines. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example exconfig DESCRIPTION
This is a very simple program showing how to use the Allegro configuration (ini file) routines. A first look at the example shows nothing more than a static graphic and the wait for a key press. However, the way this graphic is displayed is configured through a custom excon- fig.ini file which is loaded manually. From this file the example obtains parameters like fullscreen/windowed mode, a specific graphic res- olution to set up, which graphic to show, how to blit it on the screen, etc. SEE ALSO
BITMAP(3alleg4), END_OF_MAIN(3alleg4), RGB(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), blit(3alleg4), clear_bitmap(3alleg4), destroy_bitmap(3alleg4), font(3alleg4), get_config_argv(3alleg4), get_config_int(3alleg4), get_con- fig_string(3alleg4), install_keyboard(3alleg4), line(3alleg4), load_bitmap(3alleg4), makecol(3alleg4), pop_config_state(3alleg4), push_con- fig_state(3alleg4), readkey(3alleg4), screen(3alleg4), set_color_depth(3alleg4), set_config_file(3alleg4), set_gfx_mode(3alleg4), set_pal- ette(3alleg4), stretch_blit(3alleg4), textout_centre_ex(3alleg4), textprintf_centre_ex(3alleg4), ustrdup(3alleg4), ustricmp(3alleg4) Allegro version 4.4.2 exconfig(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

Featured Tech Videos