version 1.6, 2009/02/28 13:47:36 |
version 1.8, 2009/03/08 11:41:22 |
Line 93 xstrdup(const char *p) |
|
Line 93 xstrdup(const char *p) |
|
} |
} |
|
|
int |
int |
xstrlcats(char *buf, const struct mdoc_node *n, size_t sz) |
xstrlcpys(char *buf, const struct mdoc_node *n, size_t sz) |
{ |
{ |
char *p; |
char *p; |
|
|
Line 103 xstrlcats(char *buf, const struct mdoc_node *n, size_t |
|
Line 103 xstrlcats(char *buf, const struct mdoc_node *n, size_t |
|
|
|
for ( ; n; n = n->next) { |
for ( ; n; n = n->next) { |
assert(MDOC_TEXT == n->type); |
assert(MDOC_TEXT == n->type); |
p = n->data.text.string; |
p = n->string; |
if ( ! xstrlcat(buf, p, sz)) |
if ( ! xstrlcat(buf, p, sz)) |
return(0); |
return(0); |
if (n->next && ! xstrlcat(buf, " ", sz)) |
if (n->next && ! xstrlcat(buf, " ", sz)) |