2005-09-22 06:44:26 +00:00
|
|
|
/* getline.h --- Prototype for replacement getline function.
|
|
|
|
|
Copyright (C) 2005 Free Software Foundation, Inc.
|
2003-08-07 09:25:26 +00:00
|
|
|
|
2005-09-22 06:44:26 +00:00
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
|
|
|
|
published by the Free Software Foundation; either version 2, or (at
|
|
|
|
|
your option) any later version.
|
1996-04-22 03:02:55 +00:00
|
|
|
|
2005-09-22 06:44:26 +00:00
|
|
|
This program is distributed in the hope that it will be useful, but
|
|
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
General Public License for more details.
|
1996-04-22 03:02:55 +00:00
|
|
|
|
2005-09-22 06:44:26 +00:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
|
02110-1301, USA. */
|
1996-04-22 03:02:55 +00:00
|
|
|
|
2005-09-22 06:44:26 +00:00
|
|
|
/* Written by Simon Josefsson. */
|
1995-09-19 14:30:59 +00:00
|
|
|
|
2005-09-22 06:44:26 +00:00
|
|
|
/* Get size_t, FILE, ssize_t. And getline, if available. */
|
2003-06-08 18:01:09 +00:00
|
|
|
# include <stddef.h>
|
1996-07-15 03:56:06 +00:00
|
|
|
# include <stdio.h>
|
2003-08-07 09:25:26 +00:00
|
|
|
# include <sys/types.h>
|
|
|
|
|
|
2005-09-22 06:44:26 +00:00
|
|
|
#if !HAVE_DECL_GETLINE
|
|
|
|
|
ssize_t getline (char **lineptr, size_t *n, FILE *stream);
|
|
|
|
|
#endif /* !HAVE_GETLINE */
|