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

 

file_slurp

#include "sflfile.h"
DESCR *
file_slurp (
    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. 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.

Source Code - (sflfile.c)

{
    return (file_load_data (filename, 65535UL));
}

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