load_datafile_object man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

load_datafile_object(3)		Allegro manual	       load_datafile_object(3)

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(3),  load_datafile(3),  set_color_conversion(3),
       find_datafile_object(3), register_datafile_object(3)

Allegro				 version 4.4.2	       load_datafile_object(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net