///////////////////////////////////////////////////////////////////////////////
// CGISetup Header                                                           //
///////////////////////////////////////////////////////////////////////////////
//                                                                           //
// Author:  Hexar William Anderson                                           //
// Date:    10/25/2000                                                       //
// Desc:    This class does all of the work for you when it comes to         //
//          separating CGI input into name/value pairs.  Then, you can access//
//          these values by name or by number.                               //
///////////////////////////////////////////////////////////////////////////////
//                                                                           //
// COPYRIGHT NOTICE                                                          //
// Copyright (c) 2001 Hexar W. Anderson                                      //
//                                                                           //
// CGISetup may be used and modified free of charge by anyone so long as this//
// copyright notice remains intact.  By using this code you agree to         //
// indemnify Hexar Anderson from any liability that might arise from its use.//
//                                                                           //
// Attempting to sell the source code for this program without prior written //
// consent is expressly forbidden.  Obtain permission before redistributing  //
// this software over the Internet or any other medium.                      //
///////////////////////////////////////////////////////////////////////////////
 
struct cgi
  {
   char **name;
   char **value;
   int num;
  };
 
int setup(struct cgi *);
char* findval(struct cgi *, const char*);
void freecgi(struct cgi *);
void movefile(const char*, const char*);
void viewfile(const char*);
 
int countchars(char, const char*);
int countstrings(const char*, const char*);
int convhex(char);
void replace(char *, char, char);
void fix(char*);
void strlwr(char*);

All material Copyright (c) 2001-2010 Hexar
Please direct all inquiries, love letters, and hate mail to .

Home •  Blog •  Photos •  Code •  Features •  Resume •  WinTetris