diff options
Diffstat (limited to 'pages.h')
-rw-r--r-- | pages.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -21,12 +21,18 @@ #include <unistd.h> #include <sys/stat.h> +struct fileorstring +{ + const char *file; + const char *str; +}; + /* helpers */ 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); +int writeatbyte(const char *dest, struct fileorstring *source, long offset); +int replaceinpage(const char *outfile, const char *toreplace, struct fileorstring *source); char *gettime(); int createtmpfile(const char *name, const char *content, size_t size); |