?? cgiparsem.h
字號:
//--------------------------------------------------------------------------
// IP Stack CGI Demonstration Program
//--------------------------------------------------------------------------
// cgiparsem.h
//
// Multipart CGI Parsing for "multipart/form-data" forms
//
// Author: Michael A. Denio
//
// Copyright 2003 by Texas Instruments Inc.
//-------------------------------------------------------------------------
#ifndef _cgiparsem_h
#define _cgiparsem_h
typedef struct {
char *Name; // NULL terminated "name"
char *Filename; // NULL terminated "filename" or NULL if not a file
char *Type; // NULL terminated "Content-Type" or NULL if no type
char *Data; // Pointer to item data (NULL terminated on strings)
int DataSize; // Length of data (also valid on strings)
} CGIPARSEREC;
//
// cgiParseMultiVars()
//
// This function is used to parse CGI data sent in the "multipart/form-data"
// format. The caller must pass in the entire CGI payload as a single buffer.
// The buffer will altered to add NULL termination to all names, types, and
// data fields.
//
// Returns the number of validated records, or -1 on parsing error.
//
int cgiParseMultiVars( char *buffer, int buflen, CGIPARSEREC *recs, int maxrecs );
#endif /* _cgiparsem_h */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -