load_datafile 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(3)		Allegro manual		      load_datafile(3)

NAME
       load_datafile  - Loads a datafile into memory. Allegro game programming
       library.

SYNOPSIS
       #include <allegro.h>

       DATAFILE *load_datafile(const char *filename);

DESCRIPTION
       Loads a datafile into memory in	one  go.  If  the  datafile  has  been
       encrypted, you must first call packfile_password() to set the appropriā€
       ate key. If the datafile contains truecolor graphics, you must set  the
       video mode or call set_color_conversion() before loading it. Example:

	  /* Load the resources for our game. */
	  DATAFILE *dat = load_datafile("game.dat");
	  if (!dat)
	     abort_on_error("Couldn't load sound resources!");
	  /* Use resources. */
	  ...
	  /* Destroy them when we don't need them any more. */
	  unload_datafile(dat);

RETURN VALUE
       Returns	a  pointer to the DATAFILE, or NULL on error. Remember to free
       this DATAFILE later to avoid memory leaks.

SEE ALSO
       load_datafile_callback(3), unload_datafile(3), load_datafile_object(3),
       set_color_conversion(3),	   fixup_datafile(3),	 packfile_password(3),
       find_datafile_object(3),	  register_datafile_object(3),	  excustom(3),
       exdata(3), exexedat(3), exgui(3), exsprite(3), exunicod(3)

Allegro				 version 4.4.2		      load_datafile(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