nbp_name (3)
Leading comments
Title: nbp_name Author: [FIXME: author] [see http://docbook.sf.net/el/author] Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/> Date: 12 Jan 1994 Manual: Netatalk 2.2 Source: Netatalk 2.2 Language: English
NAME
nbp_name - NBP name parsingSYNOPSIS
- 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.