2000-10-31 15:09:02 +08:00
|
|
|
/* Copyright (C) 1995, 1997, 1999 Free Software Foundation, Inc.
|
1996-04-22 11:02:55 +08: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.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|
|
|
|
1996-10-30 01:56:06 +08:00
|
|
|
#ifndef GETLINE_H_
|
|
|
|
# define GETLINE_H_ 1
|
1995-09-19 22:30:59 +08:00
|
|
|
|
1996-07-15 11:56:06 +08:00
|
|
|
# include <stdio.h>
|
1995-09-19 22:30:59 +08:00
|
|
|
|
1996-07-15 11:56:06 +08:00
|
|
|
# ifndef PARAMS
|
1997-12-21 19:22:51 +08:00
|
|
|
# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
|
|
|
|
# define PARAMS(Args) Args
|
1996-07-15 11:56:06 +08:00
|
|
|
# else
|
1997-12-21 19:22:51 +08:00
|
|
|
# define PARAMS(Args) ()
|
1996-10-09 10:29:10 +08:00
|
|
|
# endif
|
|
|
|
# endif
|
1996-04-22 11:02:55 +08:00
|
|
|
|
1999-05-14 04:44:45 +08:00
|
|
|
# if __GLIBC__ < 2
|
1996-04-22 11:02:55 +08:00
|
|
|
int
|
|
|
|
getline PARAMS ((char **_lineptr, size_t *_n, FILE *_stream));
|
1995-09-19 22:30:59 +08:00
|
|
|
|
|
|
|
int
|
1996-04-22 11:02:55 +08:00
|
|
|
getdelim PARAMS ((char **_lineptr, size_t *_n, int _delimiter, FILE *_stream));
|
1999-05-14 04:44:45 +08:00
|
|
|
# endif
|
1995-09-19 22:30:59 +08:00
|
|
|
|
1996-10-30 01:56:06 +08:00
|
|
|
#endif /* not GETLINE_H_ */
|