aboutsummaryrefslogtreecommitdiff
path: root/err.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-17 11:20:43 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-17 11:20:43 +0200
commit38f8e2242353711d5c87c58f3831306934d2e6b7 (patch)
tree92ec8e297731fb1de90b0e465bb52207bbe5c037 /err.c
parent4b0e767fd645687e8d2a5ded778c57b8cf42bc4a (diff)
downloadcforum-38f8e2242353711d5c87c58f3831306934d2e6b7.tar.gz
Compartmentalize
Diffstat (limited to 'err.c')
-rw-r--r--err.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/err.c b/err.c
new file mode 100644
index 0000000..d6f66ad
--- /dev/null
+++ b/err.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+
+void
+srverr(char *err)
+{
+ char title[] = "500 Internal Server Error";
+
+ printf("Status: %s\n", title);
+ printf("Content-Type: text/html\n\n");
+ #include "t/head.tc"
+ #include "t/err.tc"
+ #include "t/foot.tc"
+} \ No newline at end of file