From 9c45d9ad13fdf439d44d7443ae75da15ea0223ed Mon Sep 17 00:00:00 2001 From: Sam Varshavchik Date: Mon, 19 Aug 2013 16:39:41 -0400 Subject: Initial checkin Imported from subversion report, converted to git. Updated all paths in scripts and makefiles, reflecting the new directory hierarchy. --- cgi/cgicheckbox.c | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 cgi/cgicheckbox.c (limited to 'cgi/cgicheckbox.c') diff --git a/cgi/cgicheckbox.c b/cgi/cgicheckbox.c new file mode 100644 index 0000000..87f35af --- /dev/null +++ b/cgi/cgicheckbox.c @@ -0,0 +1,41 @@ +/* +** Copyright 2007 Double Precision, Inc. +** See COPYING for distribution information. +*/ + +/* +*/ + +#include "cgi.h" +#include +#include +#include +#include + +char *cgi_checkbox(const char *name, + const char *value, + const char *flags) +{ + char *buf; + + if (!value) + value=""; + + buf=malloc(strlen(name)+strlen(flags)+200); + + if (!buf) + return NULL; + + strcpy(buf, ""); + return buf; +} -- cgit v1.2.3