[#BIO_get_line]
= BIO&lowbar;get&lowbar;line
:mrdocs:

Read bytes until a newline or EOF, without requiring a trailing NUL in the source&period;

== Synopsis

Declared in `&lt;openssl&sol;bio&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BIO&lowbar;get&lowbar;line(
    xref:BIO.adoc[BIO]* bio,
    char* buf,
    int size);
----

== Return Value

Number of bytes stored, 0 on EOF with no data, or a negative value on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bio*
| Source BIO&period;
| *buf*
| Destination buffer&period;
| *size*
| Capacity of `buf` in bytes&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
