summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-05-24 22:46:47 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-05-24 22:46:47 +0200
commitc571234ad3d2fed06016c782e02939cd0eb5d6bc (patch)
tree79303498db5e5294c59b0b7de9555d30f7be09cd /util.h
parent27bc74a0433b143ce1744698e3c331e907a7fb3f (diff)
sfeed_frames and util cleanup
- remove xerr and xerrx, assume the OS closes and flushes file descriptors on OS process exit. - move esnprintf, printcontent to util.
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.h b/util.h
index eb73395..5b4a358 100644
--- a/util.h
+++ b/util.h
@@ -23,7 +23,9 @@ enum { FieldUnixTimestamp = 0, FieldTimeFormatted, FieldTitle, FieldLink,
FieldContent, FieldContentType, FieldId, FieldAuthor, FieldFeedType,
FieldFeedName, FieldFeedUrl, FieldBaseSiteUrl, FieldLast };
+int esnprintf(char *, size_t, const char *, ...);
int parseline(char **, size_t *, char **, unsigned int, int, FILE *);
+void printcontent(const char *, FILE *);
void printfeednameid(const char *, FILE *);
void printhtmlencoded(const char *, FILE *);
void printlink(const char *, const char *, FILE *);