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

param_create() Function

The param_create function creates a pb_param structure containing a specified name and value. The name and value are copied. Use this function to prepare a pb_param structure to be used in calls to pblock routines such as pblock_pinsert.


pb_param *param_create(char *name, char *value);

Return Values

A pointer to a new pb_param structure.


char *name is the string containing the name.

char *value is the string containing the value.


pb_param *newpp = param_create("content-type","text/plain");
pblock_pinsert(newpp, rq->srvhdrs);

See Also

param_free() Function, pblock_pinsert() Function, pblock_remove() Function