O2S C Library 1.8.2
Provide high-level data-structures and other fundamental tools for C projects
Loading...
Searching...
No Matches
open.c File Reference

Construct file input streams from files. More...

#include "o2s/file_input_stream.h"
#include "o2s/log.h"
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>

Go to the source code of this file.

Macros

#define FILE_STREAM_BUFFER_SIZE

Functions

ifstream_t file_open (const char *file_name, int flags)
 Construct a file input stream : Open the file and allocate the buffer.
ifstream_t file_from_descriptor (int descriptor)
 Construct a file input stream from an externally managed file descriptor.

Detailed Description

Construct file input streams from files.

Author
Antoine GAGNIERE

Definition in file open.c.

Macro Definition Documentation

◆ FILE_STREAM_BUFFER_SIZE

#define FILE_STREAM_BUFFER_SIZE
Todo
configure in a better way

Definition at line 28 of file open.c.