Blame gl/getline.c

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