From 2810ad72aeb973a898034d6875922284062c5ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 17 Sep 2021 17:02:29 +0200 Subject: Rework query functions Now, the value/parameter retrieval function handles both GET and POST parameters. --- query.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'query.h') 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 -- cgit v1.2.3