nsgenbind
Loading...
Searching...
No Matches
Functions
output.h File Reference

Go to the source code of this file.

Functions

int output_open (const char *filename, struct opctx **opctx_out)
 
int output_close (struct opctx *opctx)
 
int outputf (struct opctx *opctx, const char *fmt,...) __attribute__((format(printf
 
int int outputc (struct opctx *opctx, int c)
 
int output_line (struct opctx *opctx)
 

Function Documentation

◆ output_close()

int output_close ( struct opctx opctx)

close output file and free context

Definition at line 52 of file output.c.

◆ output_line()

int output_line ( struct opctx opctx)

generate c comment with line directive for current outut context

Definition at line 98 of file output.c.

◆ output_open()

int output_open ( const char *  filename,
struct opctx **  opctx_out 
)

open output file

opens output file and creates output context

Parameters
filenameThe filename of the file to output
opctx_outThe resulting output context
Returns
0 on success and opctx_out updated else -1

Definition at line 23 of file output.c.

◆ outputc()

int int outputc ( struct opctx opctx,
int  c 
)

Definition at line 88 of file output.c.

◆ outputf()

int outputf ( struct opctx opctx,
const char *  fmt,
  ... 
)

output formatted data to file