diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-03 19:21:58 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-03 19:21:58 +0000 |
commit | c67723cb5220a19191e6836e53b8d0a489c86797 (patch) | |
tree | e75720ca8fbbb4d7f4a0ed25af3ab2b2ecf392b3 /ml.c | |
parent | ac4bc07079be4963163734d67749697140f23b4b (diff) | |
download | mandoc-c67723cb5220a19191e6836e53b8d0a489c86797.tar.gz |
Major update.
Diffstat (limited to 'ml.c')
-rw-r--r-- | ml.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -76,6 +76,19 @@ ml_nputs(struct md_mbuf *p, const char *buf, size_t sz, size_t *pos) int +ml_puts(struct md_mbuf *p, const char *buf, size_t *pos) +{ + size_t sz; + + sz = strlen(buf); + if ( ! md_buf_puts(p, buf, sz)) + return(0); + *pos += sz; + return(1); +} + + +int ml_putchars(struct md_mbuf *p, char buf, size_t count, size_t *pos) { size_t i; |