3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
6 .\" Manual: Netatalk 2.2
7 .\" Source: Netatalk 2.2
10 .TH "NBP_NAME" "3" "12 Jan 1994" "Netatalk 2.2" "Netatalk 2.2"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
16 .\" disable justification (adjust text to left margin only)
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
22 nbp_name \- NBP name parsing
24 .HP \w'int\ nbp_name('u
25 .BI "int nbp_name(char\ *" "name" ", char\ **" "obj" ", char\ **" "type" ", char\ **" "zone" ");"
29 parses user supplied names into their component object, type, and zone\&.
33 should be passed by reference, and should point to the caller\'s default values\&.
35 will change the pointers to the parsed\-out values\&.
38 \fIobject\fR\fB:\fR\fItype\fR\fB@\fR\fIzone\fR, where each of
40 \fB:\fR\fItype\fR\fB,\fR
49 must be proceeded by `\fB:\fR\', and
51 must be preceded by `\fB@\fR\'\&.
58 \fBnbp_name()\fR\&. The default value of
60 is the first component of the machine\'s hostname (as returned by
61 \fBgethostbyname\fR(3))\&. The default value of
63 is ``AFPServer\'\', and of
65 is ``*\'\', the default zone\&. To cause
67 to register itself in some zone other than the default, one would invoke it as
73 afpd \-n @some\-other\-zone
82 would retain their default values\&.
88 return pointers into static area which may be over\-written on each call\&.