From f6a0aabfa27e19ad57823e104db7eac1252e6f1f Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 27 Jun 2014 15:42:53 +0200 Subject: small fixes reorder static -> public xml functions. Signed-off-by: Hiltjo Posthuma --- util.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'util.c') diff --git a/util.c b/util.c index 4f4a332..776a579 100644 --- a/util.c +++ b/util.c @@ -76,6 +76,12 @@ printlink(const char *link, const char *baseurl, FILE *fp) { fputs(link, fp); } +/* read a field-separated line from 'fp', + * separated by a character 'separator', + * 'fields' is a list of pointer with a maximum size of 'maxfields'. + * 'line' buffer is allocated using malloc, 'size' will contain the + * allocated buffer size. + * returns: amount of fields read. */ unsigned int parseline(char **line, size_t *size, char **fields, unsigned int maxfields, int separator, FILE *fp) -- cgit v1.2.3