1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-11 22:54:02 +02:00
Files
coreutils/lib/getline.h

39 lines
1.1 KiB
C
Raw Normal View History

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