[#BIO_gets] = BIO_gets :mrdocs: Read a line from a BIO into `buf` (NUL‐terminated; strips trailing newline when present). == Synopsis Declared in `<openssl/bio.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int BIO_gets( xref:BIO.adoc[BIO]* bp, char* buf, int size); ---- == Return Value Number of bytes read (excluding NUL), 0 on EOF, or a negative value on error. == Parameters [cols="1,4"] |=== | Name| Description | *bp* | Source BIO. | *buf* | Destination buffer. | *size* | Capacity of `buf` in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#