1SLPFree(3SLP)     Service Location Protocol Library Functions    SLPFree(3SLP)
2
3
4

NAME

6       SLPFree - frees memory
7

SYNOPSIS

9       cc [ flag... ] file... -lslp [ library... ]
10       #include <slp.h>
11
12       SLPError SLPFree(void *pvMem);
13
14

DESCRIPTION

16       The  SLPFree()  function  frees  memory returned from SLPParseSrvURL(),
17       SLPFindScopes(),  SLPEscape(), and SLPUnescape().
18

PARAMETERS

20       pvMem     A pointer to the storage allocated by  the  SLPParseSrvURL(),
21                SLPFindScopes(),  SLPEscape(),  and  SLPUnescape()  functions.
22                pvMem is ignored if its value is NULL.
23
24

ERRORS

26       This function or its callback may return any SLP error  code.  See  the
27       ERRORS section in slp_api(3SLP).
28

EXAMPLES

30       Example 1 Using SLPFree()
31
32
33       The  following  example  illustrates  how to call SLPFree(). It assumes
34       that SrvURL contains previously allocated memory.
35
36
37         SLPerror err;
38
39         err = SLPFree((void*) SrvURL);
40
41

ENVIRONMENT VARIABLES

43       SLP_CONF_FILE    When set, use this file for configuration.
44
45

ATTRIBUTES

47       See attributes(5)  for descriptions of the following attributes:
48
49
50
51
52       ┌─────────────────────────────┬─────────────────────────────┐
53       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
54       ├─────────────────────────────┼─────────────────────────────┤
55       │Availability                 │SUNWslpu                     │
56       └─────────────────────────────┴─────────────────────────────┘
57

SEE ALSO

59       slpd(1M), SLPEscape(3SLP),  SLPFindScopes(3SLP),  SLPParseSrvURL(3SLP),
60       SLPUnescape(3SLP),     slp_api(3SLP),     slp.conf(4),     slpd.reg(4),
61       attributes(5)
62
63
64       System Administration Guide: Network Services
65
66
67       Guttman, E.,  Perkins, C., Veizades, J., and Day, M. RFC 2608,  Service
68       Location Protocol, Version 2. The Internet Society. June 1999.
69
70
71       Kempf,  J.  and  Guttman, E. RFC 2614, An API for Service Location. The
72       Internet Society. June 1999.
73
74
75
76SunOS 5.11                        16 Jan 2003                    SLPFree(3SLP)
Impressum