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 v3.3.4, written by Chris.McDonald@uwa.edu.au
 Last modified: Tue Mar 1 7:43AM 2016