C Library of CGI Related Functions

CWC
1 Min Read

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.

Code:
#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 '*/

 

Share This Article
5 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

English
Exit mobile version