nbp_name (3) - Linux Manuals
nbp_name: NBP name parsing
NAME
nbp_name - NBP name parsing
SYNOPSIS
-
int nbp_name(char
* name, char** obj, char** type, char** zone);
DESCRIPTION
nbp_name()
EXAMPLE
The argument of afpd(8)'s -n option is parsed with nbp_name(). The default value of obj is the first component of the machine's hostname (as returned by gethostbyname(3)). The default value of type is ``AFPServer'', and of zone is ``*'', the default zone. To cause afpd to register itself in some zone other than the default, one would invoke it as
-
afpd -n @some-other-zone
obj and type would retain their default values.
BUGS
obj, type, and zone return pointers into static area which may be over-written on each call.