| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#include "sflfile.h" DESCR * file_slurp ( const char *filename)
Reads an entire file, and returns a DESCR containing the file data. The file is read as binary data. The returned DESCR should be freed using the mem_free() call. if the file is > 64K long, only the first 64K bytes are read into memory. This is to stop really silly things from happening. Returns NULL if the file cannot be found. Appends a null byte to the data in any case.
{ return (file_load_data (filename, 65535UL)); }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |