evbuffer_readln

Read a single line from an evbuffer.

Reads a line terminated by an EOL as determined by the evbuffer_eol_style argument. Returns a newly allocated nul-terminated string; the caller must free the returned value. The EOL is not included in the returned string.

@param buffer the evbuffer to read from @param n_read_out if non-NULL, points to a size_t that is set to the number of characters in the returned string. This is useful for strings that can contain NUL characters. @param eol_style the style of line-ending to use. @return pointer to a single line, or NULL if an error occurred

extern (C) nothrow
char*
evbuffer_readln

Meta