Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pack_fread(3alleg4) [x11r4 man page]

pack_fread(3alleg4)						  Allegro manual					       pack_fread(3alleg4)

NAME
pack_fread - Reads n bytes from the stream. Allegro game programming library. SYNOPSIS
#include <allegro.h> long pack_fread(void *p, long n, PACKFILE *f); DESCRIPTION
Reads `n' bytes from the stream `f', storing them at the memory location pointed to by `p'. Example: unsigned char buf[256]; ... if (pack_fread(buf, 256, input_file) != 256) abort_on_error("Truncated input file!"); RETURN VALUE
Returns the number of bytes read, which will be less than `n' if EOF is reached or an error occurs. Error codes are stored in errno. SEE ALSO
pack_fopen(3alleg4), pack_fopen_chunk(3alleg4), pack_feof(3alleg4), expackf(3alleg4) Allegro version 4.4.2 pack_fread(3alleg4)

Check Out this Related Man Page

expackf(3alleg4)                                                  Allegro manual                                                  expackf(3alleg4)

NAME
expackf - Using custom PACKFILE vtables. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example expackf DESCRIPTION
This program demonstrates the use of the packfile functions, with some simple tests. The first test uses the standard packfile functions to transfer a bitmap file into a block of memory, then reads the bitmap out of the block of memory, using a custom packfile vtable. The second test reads in a bitmap with another custom packfile vtable, which uses libc's file stream functions. The third test demonstrates seeking with a custom vtable. The fourth test reads two bitmaps, and dumps them back into a single file, using a custom vtable again. Tools SEE ALSO
ASSERT(3alleg4), BITMAP(3alleg4), END_OF_MAIN(3alleg4), PACKFILE(3alleg4), PACKFILE_VTABLE(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), alert(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), blit(3alleg4), clear_bitmap(3alleg4), destroy_bit- map(3alleg4), file_size_ex(3alleg4), font(3alleg4), install_keyboard(3alleg4), key(3alleg4), load_bmp_pf(3alleg4), load_pcx(3alleg4), load_pcx_pf(3alleg4), load_tga_pf(3alleg4), pack_fclose(3alleg4), pack_fopen(3alleg4), pack_fopen_vtable(3alleg4), pack_fread(3alleg4), pack_fseek(3alleg4), readkey(3alleg4), save_bmp_pf(3alleg4), save_tga_pf(3alleg4), screen(3alleg4), set_color_depth(3alleg4), set_gfx_mode(3alleg4), text_height(3alleg4), textprintf_centre_ex(3alleg4), textprintf_ex(3alleg4) Allegro version 4.4.2 expackf(3alleg4)
Man Page

We Also Found This Discussion For You

1. UNIX for Advanced & Expert Users

Shopt -s histappend

What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file. # When the shell exits, append to the history file instead of overwriting it shopt -s histappend (3 Replies)
Discussion started by: cokedude
3 Replies