al_fopen_slice man page on DragonFly

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

al_fopen_slice(3)					     al_fopen_slice(3)

       al_fopen_slice - Allegro 5 API

	      #include <allegro5/allegro.h>

	      ALLEGRO_FILE *al_fopen_slice(ALLEGRO_FILE *fp, size_t initial_size, const char *mode)

       Opens  a	 slice (subset) of an already open random access file as if it
       were a stand alone file.	 While the slice is open, the parent file han‐
       dle must not be used in any way.

       The  slice  is  opened  at  the current location of the parent file, up
       through initial_size bytes.  The initial_size may be  any  non-negative
       integer that will not exceed the bounds of the parent file.

       Seeking	with  ALLEGRO_SEEK_SET will be relative to this starting loca‐
       tion.  ALLEGRO_SEEK_END will be relative to the starting location  plus
       the size of the slice.

       The mode can be any combination of:

       · r: read access

       · w: write access

       · e: expandable

       For example, a mode of "rw" indicates the file can be read and written.
       (Note that this is slightly different from the stdio  modes.)  Keep  in
       mind  that  the	parent	file must support random access and be open in
       normal write mode (not append) for the slice to work in a well  defined

       If  the slice is marked as expandable, then reads and writes can happen
       after the initial end point, and the slice will grow accordingly.  Oth‐
       erwise, all activity is restricted to the initial size of the slice.

       A slice must be closed with al_fclose(3).  The parent file will then be
       positioned immediately after the end of the slice.

       5.0.6, 5.1.0


Allegro reference manual				     al_fopen_slice(3)

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]
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