35 lines
1.5 KiB
C
35 lines
1.5 KiB
C
|
|
#ifndef __CGIFUNCS_H__
|
|
#define __CGIFUNCS_H__
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// Prototypes of functions exported by this module.
|
|
//
|
|
//*****************************************************************************
|
|
int FindCGIParameter(const char *pcToFind, char *pcParam[], int iNumParams);
|
|
tBoolean IsValidHexDigit(const char cDigit);
|
|
unsigned char HexDigit(const char cDigit);
|
|
tBoolean DecodeHexEscape(const char *pcEncoded, char *pcDecoded);
|
|
unsigned long EncodeFormString(const char *pcDecoded, char *pcEncoded,
|
|
unsigned long ulLen);
|
|
unsigned long DecodeFormString(const char *pcEncoded, char *pcDecoded,
|
|
unsigned long ulLen);
|
|
tBoolean CheckDecimalParam(const char *pcValue, long *plValue);
|
|
long GetCGIParam(const char *pcName, char *pcParams[], char *pcValue[],
|
|
int iNumParams, tBoolean *pbError);
|
|
long GetCGIStringParam(const char *pcName, char *pcParams[], char *pcValue[],
|
|
int iNumParams,char *pbuf,int buflen,int ign_quotation);
|
|
|
|
long GetCGIHexParam(const char *pcName, char *pcParams[], char *pcValue[],
|
|
int iNumParams, tBoolean *pbError);
|
|
void CheckStringParam(const char *pcValue, char *pbuf);
|
|
tBoolean
|
|
CheckHexParam(const char *pcValue, long *plValue);
|
|
long
|
|
GetCGIHexParam(const char *pcName, char *pcParams[], char *pcValue[],
|
|
int iNumParams, tBoolean *pbError);
|
|
|
|
#endif // __CGIFUNCS_H__
|
|
|