GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PACK_FREAD (3)

NAME

pack_fread - Reads n bytes from the stream. Allegro game programming library.

CONTENTS

Synopsis
Description
See Also

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(3), pack_fopen_chunk(3), pack_feof(3), expackf(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro PACK_FREAD (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.