From: mmj Date: Fri, 30 Apr 2004 08:57:33 +0000 (+1000) Subject: This is new function to quickly stat a control of the list. Example: X-Git-Tag: RELEASE_1_0_0~263 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c03ed2062ea1958fba535fcdde2c251e6ffd406;p=thirdparty%2Fmlmmj.git This is new function to quickly stat a control of the list. Example: int moderatedlist = statctrl(listdir, "moderated); Then it'll return true/false according to whether a file listdir/control/moderated exists. --- diff --git a/include/statctrl.h b/include/statctrl.h new file mode 100644 index 00000000..21d21748 --- /dev/null +++ b/include/statctrl.h @@ -0,0 +1,14 @@ +/* Copyright (C) 2004 Mads Martin Joergensen + * + * $Id$ + * + * This file is redistributable under version 2 of the GNU General + * Public License as described at http://www.gnu.org/licenses/gpl.txt + */ + +#ifndef STATCTRL_H +#define STATCTRL_H + +int statctrl(const char *listdir, const char *ctrlstr); + +#endif /* STATCTRL_H */