cgi_console.c File Reference

#include "cgi.h"

Include dependency graph for cgi_console.c:

Go to the source code of this file.

Functions

void LogError (char *c)
int main (int argc, char *argv[])
int SendCGIHeader (EZSSTREAM *htmlout, char *header)
char * GetEnvironment (EZSSTREAM *htmlout, char *key)


Function Documentation

char* GetEnvironment EZSSTREAM htmlout,
char *  key
 

Definition at line 56 of file cgi_console.c.

Referenced by CGImain(), CheckCGISendMethod(), JSGetEnv(), LogStartup(), main(), PrintFinish(), ReadCGIGetData(), and SetupCGIData().

00057 {
00058  return getenv(key);
00059 }

void LogError char *  c  ) 
 

Definition at line 19 of file cgi_console.c.

00020 {}

int main int  argc,
char *  argv[]
 

Definition at line 21 of file cgi_console.c.

References CGImain(), DeleteNVP(), NULL, ReadPairedValues(), STREAM, and swapchars().

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 }

int SendCGIHeader EZSSTREAM htmlout,
char *  header
 

send NULL for the default header "Content-type: text/html"

Definition at line 51 of file cgi_console.c.

Referenced by CGImain(), PrintFinish(), SendImage(), and WFmain().

00052 {
00053  return 1;
00054 }



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/