Simple C Expat Wrapper (SCEW)  1.1.7
Files | Functions
Allocation

Allocate and free printers. More...

Files

file  printer.h
 SCEW printer routines for XML output.
 

Functions

SCEW_API scew_printerscew_printer_create (scew_writer *writer)
 Creates a new SCEW printer that will use the given writer by default. More...
 
SCEW_API void scew_printer_free (scew_printer *printer)
 Frees the given SCEW printer. More...
 

Detailed Description

Allocate and free printers.

Function Documentation

SCEW_API scew_printer* scew_printer_create ( scew_writer writer)

Creates a new SCEW printer that will use the given writer by default.

The SCEW writer will be used by the Output calls. It is possible to re-use a SCEW printer by setting a new writer via scew_printer_set_writer.

Precondition
writer != NULL
Parameters
writerthe SCEW writer to be used by the putput functions.
Returns
a new SCEW printer or NULL if the printer could not be created.
SCEW_API void scew_printer_free ( scew_printer printer)

Frees the given SCEW printer.

This will not free the writer being used by the printer.

Parameters
printerthe SCEW printer to free.