changeset 66:d87cfb668e46

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.
author mmj
date Fri, 30 Apr 2004 18:57:33 +1000
parents ce8b0e73888e
children b6828d24be7e
files include/statctrl.h
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/statctrl.h	Fri Apr 30 18:57:33 2004 +1000
@@ -0,0 +1,14 @@
+/* Copyright (C) 2004 Mads Martin Joergensen <mmj at mmj.dk>
+ *
+ * $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 */