v7 man page for pack_fread

Query: pack_fread

OS: v7

Section: 3alleg4

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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)
Related Man Pages
expackf(3alleg4) - debian
expackf(3alleg4) - netbsd
expackf(3alleg4) - minix
expackf(3alleg4) - x11r4
expackf(3alleg4) - opensolaris
Similar Topics in the Unix Linux Community
crontab every 5 min.
Sort by values in the 1st row, leaving first four coulumns untouched
Read a file and save every word in a variable to use
Linux froze and got back working 5 days later, no reboot.
Bash - here document on RHEL 6.8 and 6.9 servers aren't working