cnet v4.0.4  

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

cnet's Application Programming Interface

NAME
CNET_format_nicaddr - convert a NIC address to a well-formed string

SYNOPSIS
#include <cnet.h> int CNET_format_nicaddr(char *string, CnetNICaddr nicaddr);

DESCRIPTION
CNET_format_nicaddr accepts a Network Interface Card (NIC) address and formats its "internal" form to a string of characters of the form ab:cd:ef:gh:ij:kl, where each letter will be a hexadecimal character.

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 the following value to describe the error:

ER_BADARG
string is a NULL pointer.
SEE ALSO
CNET_set_nicaddr and CNET_parse_nicaddr

cnet v4.0.4 - [email protected]