1996-08-20 23:46:10 +00:00
|
|
|
#ifndef _getline_h_
|
|
|
|
#define _getline_h_ 1
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#if defined (__GNUC__) || (defined (__STDC__) && __STDC__)
|
|
|
|
#define __PROTO(args) args
|
|
|
|
#else
|
|
|
|
#define __PROTO(args) ()
|
|
|
|
#endif /* GCC. */
|
|
|
|
|
2000-10-02 06:33:59 +00:00
|
|
|
#define GETLINE_NO_LIMIT -1
|
|
|
|
|
1996-08-20 23:46:10 +00:00
|
|
|
int
|
|
|
|
getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream));
|
2000-10-02 06:33:59 +00:00
|
|
|
int
|
|
|
|
getline_safe __PROTO ((char **_lineptr, size_t *_n, FILE *_stream,
|
|
|
|
int limit));
|
1998-03-10 13:40:57 +00:00
|
|
|
int
|
|
|
|
getstr __PROTO ((char **_lineptr, size_t *_n, FILE *_stream,
|
2002-12-02 03:13:37 +00:00
|
|
|
int _terminator, int _offset, int limit));
|
1996-08-20 23:46:10 +00:00
|
|
|
|
|
|
|
#endif /* _getline_h_ */
|