Blame gl/getline.c

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