|
NAMEtrimdomain —
trim the current domain name from a host name
LIBRARYSystem Utilities Library (libutil, -lutil)SYNOPSIS#include <sys/types.h>
#include <libutil.h>
void
DESCRIPTIONThe functiontrimdomain () removes the current domain
name from the passed fullhost name by writing a
NUL character over the first period of the passed
name. The current domain name is determined by calling
gethostname(3)
and removing everything up to the first period. The name is determined the
first time this function is called and is cached for future use.
The If the passed fullname is actually a
RETURN VALUESThetrimdomain () function does not return a value.
SEE ALSOgethostname(3)HISTORYThe functiontrimdomain () first appeared in
FreeBSD 3.2.
Visit the GSP FreeBSD Man Page Interface. |