Pblock_Remove; Pblock_Str2Pblock - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

pblock_remove

The
pblock_remove
specified pblock. If you use this function you should eventually call
in order to deallocate the memory used by the
Syntax
pb_param *pblock_remove(char *name, pblock *pb);
Returns
A pointer to the named
was not found.
pb_param
Parameters
is the name of the
char *name
is the
pblock *pb
pblock
See also
pblock_copy, pblock_create, pblock_find, pblock_free,
pblock_nvinsert, param_create, param_free

pblock_str2pblock

The
pblock_str2pblock
a
, and returns the number of parameters added.
pblock
Syntax
int pblock_str2pblock(char *str, pblock *pb);
Returns
The number of parameter pairs added to the
occurred
Parameters
is the string to be scanned.
char *str
The name-value pairs in the string can have the format name
name
value
.
="
"
All back slashes (\) must be followed by a literal character. If string values are
found with no unescaped = signs (no
on, depending on the string position. For example, if
"some strings together"
name-value pairs as
1="some" 2="strings" 3="together"
function removes a specified name-value entry from a
structure, if it was found or NULL if the named
pb_param
to be removed.
pb_param
from which the name-value entry is to be removed.
function scans a string for parameter pairs, adds them to
name=
, the function treats the strings as if they appeared in
NSAPI Functions (in Alphabetical Order)
structure.
pb_param
, if any or -1 if an error
pblock
value or
=
), it assumes the names 1, 2, 3, and so
pblock_str2pblock
.
Chapter 5
NSAPI Function Reference
param_free
finds
161

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents