v7 man page for load_datafile_object

Query: load_datafile_object

OS: v7

Section: 3alleg4

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

load_datafile_object(3alleg4)					  Allegro manual				     load_datafile_object(3alleg4)

NAME
load_datafile_object - Loads a specific object from a datafile. Allegro game programming library. SYNOPSIS
#include <allegro.h> DATAFILE *load_datafile_object(const char *filename, const char *objectname); DESCRIPTION
Loads a specific object from a datafile. This won't work if you strip the object names from the file, and it will be very slow if you save the file with global compression. Example: /* Load only the music from the datafile. */ music_object = load_datafile_object("datafile.dat", "MUSIC"); /* Play it and wait a moment for it. */ play_midi(music_object->dat); ... /* Destroy unneeded music. */ unload_datafile_object(music_object); RETURN VALUE
Returns a pointer to a single DATAFILE element whose `dat' member points to the object, or NULL if there was an error or there was no object with the requested name. Remember to free this DATAFILE later to avoid memory leaks, but use the correct unloading function! SEE ALSO
unload_datafile_object(3alleg4), load_datafile(3alleg4), set_color_conversion(3alleg4), find_datafile_object(3alleg4), regis- ter_datafile_object(3alleg4) Allegro version 4.4.2 load_datafile_object(3alleg4)
Related Man Pages
load_datafile_object(3alleg4) - debian
load_datafile_object(3alleg4) - linux
load_datafile_object(3alleg4) - v7
load_datafile_object(3alleg4) - plan9
load_datafile_object(3alleg4) - redhat
Similar Topics in the Unix Linux Community
The efficiency between GREP and SED???
[Tip] HACMP 7.1.3 and DB/2-Installation
Need to add prefix using sed or awk from cat the file
Linux froze and got back working 5 days later, no reboot.
Building JSON command with bash script