aboutsummaryrefslogtreecommitdiff
path: root/query.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-17 17:02:29 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-17 17:03:57 +0200
commit2810ad72aeb973a898034d6875922284062c5ce0 (patch)
tree2c7555b79054d57350cc4136e3215094c9b4b685 /query.h
parent38f8e2242353711d5c87c58f3831306934d2e6b7 (diff)
downloadcforum-2810ad72aeb973a898034d6875922284062c5ce0.tar.gz
Rework query functions
Now, the value/parameter retrieval function handles both GET and POST parameters.
Diffstat (limited to 'query.h')
-rw-r--r--query.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/query.h b/query.h
index 81662a8..98fedb0 100644
--- a/query.h
+++ b/query.h
@@ -1,4 +1,10 @@
-char *qs;
+#define TRUNCATED(s) s[-1]
-void setqs(void);
-char *query(char *); \ No newline at end of file
+struct query{
+ int post;
+ char *string;
+} query;
+
+char *nextparam(int);
+void setquery(void);
+char *split(char *); \ No newline at end of file