diff options
author | Daniel Jones <admin@danieljon.es> | 2019-12-27 02:59:16 +1030 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2019-12-27 02:59:16 +1030 |
commit | 61cdc43efe23719c9713ee3ae87818d7b9f2699d (patch) | |
tree | c065af81070f356981d3810dec65afe2a44711c5 /pages.h | |
parent | d5d0883ec84653c13c01d35824c95fa3dd682348 (diff) | |
download | websitegenerator-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |