Sun Java System Web Server 7.0 Update 3 NSAPI Developer's Guide

pblock_nninsert() Function

The pblock_nninsert function creates a new entry with a given name and a numeric value in the specified pblock. The numeric value is first converted into a string. The name and value parameters are copied.

Note –

Parameter names are case sensitive. By convention, lowercase names are used for parameters that correspond to HTTP header fields.


pb_param *pblock_nninsert(char *name, int value, pblock *pb);

Return Values

A pointer to the new pb_param structure.


char *name is the name of the new entry.

int value is the numeric value being inserted into the pblock. This parameter must be an integer. If you want to assign a non-numerical value, then use the function pblock_nvinsert to create the parameter.

pblock *pb is the pblock into which the insertion occurs.

See Also

pblock_copy() Function, pblock_create() Function, pblock_find() Function, pblock_free() Function, pblock_nvinsert() Function, pblock_remove() Function, pblock_str2pblock() Function