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

pblock_findval() Function

The pblock_findval function finds the value associated with a specified name in a pblock. If you want to find the pb_param structure of the pblock, use the pblock_find function.

The pointer returned is a pointer into the pblock. Do not free it. If you want to modify the pointer, do a STRDUP and modify the copy.

Note –

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


char *pblock_findval(char *name, pblock *pb);

Return Values

A string containing the value associated with the name if found, or NULL if no match is found.


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

pblock *pb is the pblock to be searched.

See Also

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