| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#include "sflfile.h" DESCR * file_slurpl ( 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. Does not impose any limit on the size of the file (unlike file slurp() which stops at 64K bytes). Returns NULL if the file cannot be found. Appends a null byte to the data in any case.
{ return (file_load_data (filename, 0)); }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |