No Clock  1.0.2

I/O on expression_list lists. More...

Functions

void expression_list_fprint (FILE *f, const expression_list *list, const char *separator)
 Write an expression list to an output stream. More...
 
void expression_list_print (const expression_list *list, const char *separator)
 Write an expression list to stdout. More...
 
char * expression_list_to_string (const expression_list *list, const char *separator)
 Convert an expression list to a string. More...
 

Detailed Description

I/O on expression_list lists.

Function Documentation

void expression_list_fprint ( FILE *  f,
const expression_list *  list,
const char *  separator 
)
related

Write an expression list to an output stream.

Since
version 1.0.0
Parameters
fOutput stream.
listList to write.
separatorSeparator.

This function will print each expression found in the list using expression_to_fprint(). If a separator is provided, it will be printed between the expressions.

void expression_list_print ( const expression_list *  list,
const char *  separator 
)
related

Write an expression list to stdout.

Since
version 1.0.0
Parameters
listList to write.
separatorSeparator.
Note
This is equivalent to:
expression_list_fprint (stdout, list, separator);
char * expression_list_to_string ( const expression_list *  list,
const char *  separator 
)
related

Convert an expression list to a string.

Since
version 1.0.0
Parameters
listThe expression list to convert into a string.
separatorSeparator.
Returns
The resulting string.

This function will convert each expression found in the string using expression_to_string(). The resulting strings will be concatenated into the string returned by this function. If a separator is provided, it will be used to delimit the expressions.

Warning
It is up to the user to free the resulting string.