1nbp_name(3)                        Netatalk                        nbp_name(3)
2
3
4

NAME

6       nbp_name - NBP name parsing
7

SYNOPSIS

9       int nbp_name(char *name, char **obj, char **type, char **zone);
10

DESCRIPTION

12       nbp_name()  parses  user  supplied  names  into their component object,
13       type, and zone. obj, type, and zone should be passed by reference,  and
14       should point to the caller's default values. nbp_name() will change the
15       pointers  to   the   parsed-out   values.   name   is   of   the   form
16       object:type@zone,  where  each of object, :type, and @zone replace obj,
17       type, and zone, respectively. type must be proceeded by `:',  and  zone
18       must be preceded by `@'.
19

EXAMPLE

21       The  argument  of  afpd(8)'s  -n option is parsed with nbp_name().  The
22       default value of obj is the first component of the  machine's  hostname
23       (as  returned  by  gethostbyname(3)).   The  default  value  of type is
24       ``AFPServer'', and of zone is ``*'', the default zone. To cause afpd to
25       register  itself  in some zone other than the default, one would invoke
26       it as
27
28       afpd -n @some-other-zone
29
30       obj and type would retain their default values.
31

BUGS

33       obj, type, and zone return pointers  into  static  area  which  may  be
34       over-written on each call.
35
36
37
38
392.0.3                             12 Jan 1994                      nbp_name(3)
Impressum