Displaying Source Code(s)
|
|
Library of CGI related functions
--------------------------------------------------------------------------------
Description : This is a library of CGI related functions for use
with CGI and related applications and handles tasks like URL
decoding, splitting name-value pairs, removing server side
includes etc.
/*THIS FILE CONTAINS GENERAL CGI RELATED FUNCTIONS
FOR USE WITH CGI AND RELATED APPLICATIONS.
Author : Tushar Malhotra totobogy
02-Sep-04 11:42:44 PM*/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
/*PROTOTYPES*/
typedef struct name_val_pair name_val_pair;
int readn(char *str,int n,FILE *stream);
int replaceall(char *src, const char *find, const char *rep);
char* geturlstr(void);
void decode(char *url);
void rem_ssi(char *chkstr);
name_val_pair* name_val(char *url);
long givcount(char*);
/*A GENERAL PURPOSE FUNCTION WHICH READS N CHARACTERS FROM
STREAM AND
APPENDS '
|
|
|