MirBSD manpage: getline(3)

GETLINE(3)                 BSD Programmer's Manual                  GETLINE(3)

NAME

     getline - get a line from a stream

SYNOPSIS

     #include <stdio.h>

     ssize_t
     getline(char **buf, size_t *len, FILE *stream);

DESCRIPTION

     The getline() function is a GNU extension and should not be used in new
     code. It is only implemented in MirBSD for compatibility reasons. Thus,
     no description is provided, but feel free to send us a diff. It basically
     does the same as fgetln(3), reallocating or resizing the *buf argument if
     necessary, and NUL-terminating the result.

HISTORY

     The getline() function was first introduced to BSD in MirBSD #10. It has
     since been added to IEEE Std 1003.1-2008 ("POSIX.1"). As it started as a
     GNU extension, definition of the _GNU_SOURCE preprocessor symbol used to
     be required for this function to be visible.

 GNU                           November 7, 2020                              1

Generated on 2022-12-24 01:00:14 by $MirOS: src/scripts/roff2htm,v 1.113 2022/12/21 23:14:31 tg Exp $ — This product includes material provided by mirabilos.

These manual pages and other documentation are copyrighted by their respective writers; their sources are available at the project’s CVSweb, AnonCVS and other mirrors. The rest is Copyright © 2002–2022 MirBSD.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.

Kontakt / Impressum & Datenschutzerklärung