NAME

cat_hostname - get local machine name

SYNOPSIS

#include <cat/catutil.h>

char *cat_hostname(char *buf, int buflen);

DESCRIPTION

This function stores the local machine name in the supplied buffer buf.

buflen is the size of the supplied buffer.

The name stored is not necessarily a name associated with any network address for the machine.

The function returns buf if successful, or NULL on error.

SEE ALSO

cat, catutil