www.beck-ipc.com

@CHIP-RTOS C Library V2.00 - Common Gateway Interface API


CGI_GetFormItem

Split a formular into name and value.

void CGI_GetFormItem ( const char far *ArgumentBufferPtr,
                       FormItem far *formitem );

Parameters

ArgumentBufferPtr

Input Parameter:   Pointer to argument buffer to be parsed.

formitem

Input/Output Parameters:   Pointer to a FormItem type structure

Return Value

-- none --

Comments

On initial call, the ArgumentBufferPtr provided by the caller is a copy of the fArgumentBufferPtr member of the rbCgi structure passed by the Web server to the CGI callback function.   On subsequent calls here to pick up additional formular, the pointer returned from the CGI_GetNextItem function can be used here.

Prior to calling the two members of the FormItem structure must be set by the caller.   Both member pointers in the FormItem data structure reference buffers allocated by the user, which will receive strings produced by this API call.

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.


This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document