C Collections

chttpserver · Section 3

chttpsvr_resp_write_str

chttpsvr_resp_write_str - append a string to the response body

C Collections (libccollections, -lccollections)

#include <ccollections/chttpserver.h>
 
ccol_retval chttpsvr_resp_write_str(chttpsvr_resp *resp,
                                       const char *str);

Does the same as chttpsvr_resp_write(resp, str, strlen(str)), except
that a NULL resp or str gives ccol_invalid_args.

chttpsvr_resp_write(3), chttpsvr_resp_printf(3), chttpsvr_resp_write_json(3)