-rw-r--r-- | html.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -30,16 +30,21 @@ char *fmt(const char *format, ...) va_end(args); if (len>sizeof(buf[bufidx])) { fprintf(stderr, "[html.c] string truncated: %s\n", format); exit(1); } return buf[bufidx]; } +void html_raw(const char *data, size_t size) +{ + write(htmlfd, data, size); +} + void html(const char *txt) { write(htmlfd, txt, strlen(txt)); } void htmlf(const char *format, ...) { static char buf[65536]; |