| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

file_slurpl

#include "sflfile.h"
DESCR *
file_slurpl (
    const char *filename)

Synopsis

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.

Source Code - (sflfile.c)

{
    return (file_load_data (filename, 0));
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation