* Append the given string to the given buffer */
| 136 | * Append the given string to the given buffer |
| 137 | */ |
| 138 | static inline void |
| 139 | xo_buf_append (xo_buffer_t *xbp, const char *str, ssize_t len) |
| 140 | { |
| 141 | if (str == NULL || len == 0 || !xo_buf_has_room(xbp, len)) |
| 142 | return; |
| 143 | |
| 144 | memcpy(xbp->xb_curp, str, len); |
| 145 | xbp->xb_curp += len; |
| 146 | } |
| 147 | |
| 148 | /* |
| 149 | * Append the given NUL-terminated string to the given buffer |
no test coverage detected