cnet v4.0.4  

home topology files command‑line options the core API FAQ download and install

cnet's Application Programming Interface

NAME
CNET_set_outputfile - request that a node's output be saved into a file.

SYNOPSIS
#include <cnet.h> int CNET_set_outputfile(const char *filenm)

DESCRIPTION
Requests that a copy of a node's output, produced by printf() or putchar(), is made into the named file.

RETURN VALUE
The value 0 is returned on success. On failure, the value -1 is returned, and the global variable cnet_errno is set to one of the following values to describe the error:

ER_BADARG
The value of filenm is NULL or the named file cannot be opened for writing.

cnet v4.0.4 - [email protected]