X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=getcgi.h;h=1495671ae486e17b5dc4ee525d873956ebd5acc9;hp=5886996b3e07e052f12712f23485103f99ca7197;hb=6d60149434eed130c201d4d670ce7b3be5c2866b;hpb=200b89a2c66c58c41a27883f021850445698b337 diff --git a/getcgi.h b/getcgi.h index 5886996..1495671 100644 --- a/getcgi.h +++ b/getcgi.h @@ -1,3 +1,21 @@ +/* + * getcgivars.c - routine to read CGI input variables into an array. + * + * Copyright 2002 Jonathan McDowell + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef __GETCGI_H_ #define __GETCGI_H_ @@ -29,4 +47,13 @@ char x2c(const char *what); void unescape_url(char *url); char **getcgivars(int argc, char *argv[]); +/** + * cleanupcgi - free the memory allocated for our CGI parameters. + * @cgivars: The CGI parameter list to free. + * + * Frees up the elements of the CGI parameter array and then frees the + * array. + */ +void cleanupcgi(char **cgivars); + #endif /* __GETCGI_H_ */