# mco_lews_append_str
RT

### Prototype

        MCO_RET mco_lews_append_str(lews_connection_context_h client_ctx_handle, const char *str);

### Arguments

client_ctx_handle
The connection context handle.
str
The pointer to a string.

### Description

> `mco_lews_append_str()` appends string data to the outgoing buffer. If the buffer space is insufficient, it is freed by sending out the accumulated content. The terminating `\0` byte is not copied to the buffer.

>         ret = mco_lews_append_str(p_ctx, "<html><body><h1>Some title</h1><p>Some <b>text</b></p></body></html>");
>         if (ret != MCO_S_OK) {
>             printf("mco_lews_append_str error %d", ret);
>             return;
>         }

### Return Codes

MCO_S_OK
No errors.
MCO_E_NW_SENDERR
Error occurred while sending the response.

### Files

Header file:
mcoewslite.h
Source file:
mcoewslite.c
Library:
mcoewslite.a