summaryrefslogtreecommitdiff
path: root/util.h
AgeCommit message (Collapse)Author
2015-07-31Various improvementsHiltjo Posthuma
- Only escape characters in "content" field, these can contain newlines. - Trim newlines and tabs, etc from the title, id and author fields. - Make decodefield, xmlencode functions easier to "chain" without allocatting new buffers. - Move printutf8pad from util (only used by sfeed_plain) to sfeed_plain. - Update README, still need to update the man-page and improve the documentation in general. - Code cleanup.
2015-07-28util: rewrite uri parserHiltjo Posthuma
- don't print directly but use an internal buffer (also better for testing). - encode uri when printing (security). - add some comments.
2015-06-21improvementsHiltjo Posthuma
2015-05-25util.h: add LEN() macroHiltjo Posthuma
2015-05-24sfeed_frames and util cleanupHiltjo Posthuma
- remove xerr and xerrx, assume the OS closes and flushes file descriptors on OS process exit. - move esnprintf, printcontent to util.
2015-05-16util: parseline can return error, unsigned int -> intHiltjo Posthuma
2015-01-05add and use BSD queue.h, cleanupHiltjo Posthuma
2015-01-03code styleHiltjo Posthuma
2015-01-02trim stringHiltjo Posthuma
2015-01-02improve compatHiltjo Posthuma
2015-01-02compat: separate compat stuff, strlcpy atmHiltjo Posthuma
2014-11-11code style, use actual column width of charHiltjo Posthuma
2014-11-11move printutf8padded to utilHiltjo Posthuma
2014-05-13cleanup, tested with tccHiltjo Posthuma
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-31new versionHiltjo Posthuma
lots of things changed, but cleanup todo. changelog and consistent stream of small updates will come in the future. Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>