|
Packit |
aea12f |
/* getline.c --- Implementation of replacement getline function.
|
|
Packit Service |
991b93 |
Copyright (C) 2005-2007, 2009-2020 Free Software Foundation, Inc.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
This program is free software; you can redistribute it and/or
|
|
Packit Service |
991b93 |
modify it under the terms of the GNU Lesser General Public License as
|
|
Packit Service |
991b93 |
published by the Free Software Foundation; either version 2.1, or (at
|
|
Packit |
aea12f |
your option) any later version.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
This program is distributed in the hope that it will be useful, but
|
|
Packit |
aea12f |
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
aea12f |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
991b93 |
Lesser General Public License for more details.
|
|
Packit |
aea12f |
|
|
Packit Service |
991b93 |
You should have received a copy of the GNU Lesser General Public License
|
|
Packit |
aea12f |
along with this program; if not, see <https://www.gnu.org/licenses/>. */
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* Written by Simon Josefsson. */
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
#include <config.h>
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
#include <stdio.h>
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
ssize_t
|
|
Packit |
aea12f |
getline (char **lineptr, size_t *n, FILE *stream)
|
|
Packit |
aea12f |
{
|
|
Packit |
aea12f |
return getdelim (lineptr, n, '\n', stream);
|
|
Packit |
aea12f |
}
|