summaryrefslogtreecommitdiff
path: root/pages.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-01-12 01:46:00 +1030
committerDaniel Jones <admin@danieljon.es>2020-01-12 01:46:00 +1030
commit154c94f59045d1f0af52ca4a058b42d7f8790220 (patch)
tree0fdce772f1c4b25b2254d2bd9ba1c689133fd0bf /pages.h
parentb57adf7a8c5ba78fdfdbf9f33dbd4837f10dd5a3 (diff)
downloadwebsitegenerator-154c94f59045d1f0af52ca4a058b42d7f8790220.tar.gz
websitegenerator-154c94f59045d1f0af52ca4a058b42d7f8790220.zip
finished rss generation
added rss button to template
Diffstat (limited to 'pages.h')
-rw-r--r--pages.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pages.h b/pages.h
index 09c1abe..d20ea83 100644
--- a/pages.h
+++ b/pages.h
@@ -15,6 +15,7 @@
#ifndef PAGES_H
#define PAGES_H
+#define _XOPEN_SOURCE
#include <stdio.h>
#include <string.h>
@@ -49,6 +50,7 @@ int writeposts(const int *posts, size_t totalposts, const char *outfile, int cur
int generaterss(const int *posts, size_t totalposts);
int writerss(FILE *out, int post);
char *striphtml(char *str, size_t size);
+char *rfc822date(char *date, size_t size);
/* generators (to be put into the pages array) */
int frontpage(int flags);