* Append a string to an sbuf. */
| 536 | * Append a string to an sbuf. |
| 537 | */ |
| 538 | int |
| 539 | sbuf_cat(struct sbuf *s, const char *str) |
| 540 | { |
| 541 | size_t n; |
| 542 | |
| 543 | n = strlen(str); |
| 544 | sbuf_put_bytes(s, str, n); |
| 545 | if (s->s_error != 0) |
| 546 | return (-1); |
| 547 | return (0); |
| 548 | } |
| 549 | |
| 550 | #ifdef _KERNEL |
| 551 | /* |
no test coverage detected