Loads a specific object from a datafile.
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",
/* Play it and wait a moment for it. */
/* Destroy unneeded music. */
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!
The following threads each have code containing this keyword:
Note: You can click on the numbers to jump directly to the posts that reference this page.
The following projects include source code containing this keyword: