BFLibC 0.1
C Library
Loading...
Searching...
No Matches
filewriter.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void * BFFileWriter
 

Functions

int BFFileWriterCreate (BFFileWriter *filewriter, const char *filepath)
 
int BFFileWriterTruncate (BFFileWriter *filewriter)
 
int BFFileWriterQueueLine (BFFileWriter *filewriter, const char *line)
 
int BFFileWriterQueueFormatLine (BFFileWriter *filewriter, const char *format,...)
 
int BFFileWriterFlush (BFFileWriter *filewriter)
 
int BFFileWriterClose (BFFileWriter *filewriter)
 

Typedef Documentation

◆ BFFileWriter

typedef void* BFFileWriter

author: Brando date: 2/5/24

Function Documentation

◆ BFFileWriterClose()

int BFFileWriterClose ( BFFileWriter * filewriter)

closes file writing access

Here is the call graph for this function:

◆ BFFileWriterCreate()

int BFFileWriterCreate ( BFFileWriter * filewriter,
const char * filepath )

creates a thread safe writer to filepath

Here is the call graph for this function:

◆ BFFileWriterFlush()

int BFFileWriterFlush ( BFFileWriter * filewriter)

Flushes buffer to file

Here is the call graph for this function:

◆ BFFileWriterQueueFormatLine()

int BFFileWriterQueueFormatLine ( BFFileWriter * filewriter,
const char * format,
... )

allows line to be formatted

Here is the call graph for this function:

◆ BFFileWriterQueueLine()

int BFFileWriterQueueLine ( BFFileWriter * filewriter,
const char * line )

queues up line to be written

Here is the call graph for this function:

◆ BFFileWriterTruncate()

int BFFileWriterTruncate ( BFFileWriter * filewriter)

clears file of contents

Here is the call graph for this function: