summaryrefslogtreecommitdiff
path: root/pages.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2019-12-27 02:59:16 +1030
committerDaniel Jones <admin@danieljon.es>2019-12-27 02:59:16 +1030
commit61cdc43efe23719c9713ee3ae87818d7b9f2699d (patch)
treec065af81070f356981d3810dec65afe2a44711c5 /pages.h
parentd5d0883ec84653c13c01d35824c95fa3dd682348 (diff)
downloadwebsitegenerator-61cdc43efe23719c9713ee3ae87818d7b9f2699d.tar.gz
websitegenerator-61cdc43efe23719c9713ee3ae87818d7b9f2699d.zip
moved some code around and finished basic page generation
it is far too hacky though, createtmpfile() is an ugly hack that cannot stay. the problem is replaceinpage() and the functions it calls expects a file name that it opens, i cannot just pass it a string. i need to figure out a better solution
Diffstat (limited to 'pages.h')
-rw-r--r--pages.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pages.h b/pages.h
index 658f17a..e141376 100644
--- a/pages.h
+++ b/pages.h
@@ -26,6 +26,9 @@ int createfile(const char *file);
long findstring(const char *file, const char *str);
int deletebytes(const char *file, long offset, size_t bytes);
int writefileatbyte(const char *dest, const char *source, long offset);
+int replaceinpage(const char *outfile, const char *toreplace, const char *infile);
+char *gettime();
+int createtmpfile(const char *name, const char *content, size_t size);
/* generators (to be put into the pages array) */
int frontpage(int flags);