cnet v3.1.4

home
FAQ

cmdline options
topology files
attributes

datatypes
data structures
core API
support API

download/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 was written and is maintained by Chris McDonald (chris@csse.uwa.edu.au).

cnet development has been supported by an ACM-SIGCSE Special Project Grant, and an Australian Apple University Consortium Scholarship.