FreeBSD/contrib/libxo/libxo/xo_buf.h
/*
 * Append the given NUL-terminated string to the given buffer
 */
Append the given NUL-terminated string to the given buffer
Append the given NUL - terminated string to the given buffer
static inline void
xo_buf_append_str (xo_buffer_t *xbp, const char *str)
{
    int len = strlen(str);
    if (!xo_buf_has_room(xbp, len))
	return;
    memcpy(xbp->xb_curp, str, len);
    xbp->xb_curp += len;
}
static inline void xo_buf_append_str ( xo_buffer_t * xbp , const char * str ) { int len = strlen ( str ) ; if ( ! xo_buf_has_room ( xbp , len ) ) return ; memcpy ( xbp -> xb_curp , str , len ) ; xbp -> xb_curp += len ; }
Append the given NUL-terminated string to the given buffer
Append the given NUL - terminated string to the given buffer