cgi_console.c

Go to the documentation of this file.
00001 /******************************************************************************/
00002 /* cgi_console.c © Copyright 2004 by Raosoft Inc. All Rights Reserved.        */
00003 /*                                                                            */
00004 /* You may use and modify this file for your own use, but may not distribute  */
00005 /* it or derivative works without the prior written consent of Raosoft, Inc.  */
00006 /*                                                                            */
00007 /* If you choose to share your modifications with Raosoft, Inc. the company   */
00008 /* will attempt to incorporate them into future versions of this file.        */
00009 /*                                                                            */
00010 /* This software is provided "as is," and Raosoft makes no warranty, express  */
00011 /* or implied, of fitness for a particular application. Every measure has been*/
00012 /* taken to anticipate risks inherent to computer networks, but we cannot     */
00013 /* guarantee safety or reliability of this program in every situation.        */
00014 /*                                                                            */
00015 /******************************************************************************/
00016 
00017 #include "cgi.h"
00018 
00019 void LogError(char * c)
00020 {}
00021 int main(int argc, char *argv[])
00022 {
00023  EZSSTREAM ehtmlin, ehtmlout;
00024  CGINameValue * Params;
00025  int i;
00026  STREAM htmlin;
00027  STREAM htmlout;
00028  char * host;
00029 
00030  htmlin = &ehtmlin; htmlout = &ehtmlout;
00031 
00032 #ifdef XP_WIN
00033  swapchars(argv[0],'/','\\'); /* Apache 1.3.6 needs this */
00034 #endif
00035 
00036  htmlin->t = NULL;
00037  htmlin->f = stdin;
00038 
00039  htmlout->t = NULL;
00040  htmlout->f = stdout;
00041 
00042  Params = argc > 1 ? ReadPairedValues(argc-1,argv+1,0) : 0;
00043 
00044  i = CGImain(argv[0],Params,htmlout);
00045  if (Params) DeleteNVP(Params);
00046 
00047  return i;
00048 }
00049 
00050 
00051 int SendCGIHeader(STREAM htmlout,char * header)
00052 {
00053  return 1;
00054 }
00055 
00056 char * GetEnvironment(STREAM htmlout,char* key)
00057 {
00058  return getenv(key);
00059 }


Raosoft, Inc.
Raosoft EZReport, EZSurvey, InterForm, RapidReport, Raosoft, and SurveyWin are registered trademarks of Raosoft, Inc. Page contents © 1996-2007 by Raosoft, Inc. You may use and modify this file for your own use, but may not distribute it or derivative works without the prior written consent of Raosoft, Inc. This software is provided "as is," and Raosoft makes no warranty, express or implied, of fitness for a particular application. Every measure has been taken to anticipate risks inherent to computer networks, but we cannot guarantee safety or reliability of this program in every situation.
Tel: 206-525-4025 (US) Email: raosoft@raosoft.com
http://www.raosoft.com/