Initial commit of a basically working but severely unpolished
[sgt/agedu] / html.h
1 /*
2 * html.h: HTML output format for agedu.
3 */
4
5 /*
6 * Generate an HTML document containing the results of a query
7 * against the pathname at a given index. Returns a dynamically
8 * allocated piece of memory containing the entire HTML document,
9 * as an ordinary C zero-terminated string.
10 *
11 * If "format" is non-NULL, it is treated as an sprintf format
12 * string which must contain exactly one %lu and no other
13 * formatting directives (other than %%, which doesn't count);
14 * this will be used to construct URLs to use in hrefs pointing to
15 * queries of other related (parent and child) pathnames.
16 */
17 char *html_query(const void *t, unsigned long index, const char *format);