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

pblock_find() Function

The pblock_find macro finds a specified name-value pair entry in a pblock, and returns the pb_param structure. If you only want to find the value associated with the name, use the pblock_findval function.

Note –

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


pb_param *pblock_find(char *name, pblock *pb);

Return Values

A pointer to the pb_param structure if found, or NULL if the name is not found.


char *name is the name of a name-value pair.

pblock *pb is the pblock to be searched.

See Also

pblock_copy() Function, pblock_dup() Function, pblock_findval() Function, pblock_free() Function, pblock_nvinsert() Function, pblock_remove() Function