1*a7c91847Schristos /* getline.h --- Prototype for replacement getline function. 2*a7c91847Schristos Copyright (C) 2005 Free Software Foundation, Inc. 3*a7c91847Schristos 4*a7c91847Schristos This program is free software; you can redistribute it and/or 5*a7c91847Schristos modify it under the terms of the GNU General Public License as 6*a7c91847Schristos published by the Free Software Foundation; either version 2, or (at 7*a7c91847Schristos your option) any later version. 8*a7c91847Schristos 9*a7c91847Schristos This program is distributed in the hope that it will be useful, but 10*a7c91847Schristos WITHOUT ANY WARRANTY; without even the implied warranty of 11*a7c91847Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12*a7c91847Schristos General Public License for more details. 13*a7c91847Schristos 14*a7c91847Schristos You should have received a copy of the GNU General Public License 15*a7c91847Schristos along with this program; if not, write to the Free Software 16*a7c91847Schristos Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17*a7c91847Schristos 02110-1301, USA. */ 18*a7c91847Schristos 19*a7c91847Schristos /* Written by Simon Josefsson. */ 20*a7c91847Schristos 21*a7c91847Schristos /* Get size_t, FILE, ssize_t. And getline, if available. */ 22*a7c91847Schristos # include <stddef.h> 23*a7c91847Schristos # include <stdio.h> 24*a7c91847Schristos # include <sys/types.h> 25*a7c91847Schristos 26*a7c91847Schristos #if !HAVE_DECL_GETLINE 27*a7c91847Schristos ssize_t getline (char **lineptr, size_t *n, FILE *stream); 28*a7c91847Schristos #endif /* !HAVE_GETLINE */ 29