C Code to talk CGI, plus some other useful routines.
License
spc476/CGILib
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
This is code I wrote *years* ago to help implement CGI-based programs in C.
It has evolved since then, accumulating other bits of code that I've found
useful in CGI-based programs as well as other, non-CGI-based programs. It's
somewhat of a grabbag of routines here.
bisearch - binary search that returns both found/not-found indicator,
plus the index where it item was found/would have been
found.
cgi - routines to handle CGI variables; both GET and POST
variables are supported, but not both at the same time.
This limitation was one that has never bothered me.
chunk - a simple template system. Real simple. It's up to you to
provide loops, sub-templates, etc. All this does is allow
you to register callbacks keyed off the text between '%{'
and '}%'. The rest is up to you.
htmltok - a simple tag-soup HTML parser.
mail - a simple interface to sending email
nodelist - a double-linked list library, based off the old Amiga
OS.
pair - creates name/value pairs and puts them into a list. It
does a linear scan to find pairs.
rfc822 - parses RFC-822 formatted headers.
url - right now it only parses and creates HTTP based urls,
but the infrastructure is there to support more types.
util - some miscellaneous routines that don't fit elsewhere.
About
C Code to talk CGI, plus some other useful routines.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published