xref: /openbsd/gnu/usr.bin/cvs/lib/getline.h (revision f9bbbf45)
113571821Stholo #ifndef _getline_h_
213571821Stholo #define _getline_h_ 1
313571821Stholo 
413571821Stholo #include <stdio.h>
513571821Stholo 
613571821Stholo #if defined (__GNUC__) || (defined (__STDC__) && __STDC__)
713571821Stholo #define __PROTO(args) args
813571821Stholo #else
913571821Stholo #define __PROTO(args) ()
1013571821Stholo #endif  /* GCC.  */
1113571821Stholo 
12e77048c1Stholo #define GETLINE_NO_LIMIT -1
13e77048c1Stholo 
1413571821Stholo int
15*f9bbbf45Sfgsch   get_line __PROTO ((char **_lineptr, size_t *_n, FILE *_stream));
165e617892Stholo int
17e77048c1Stholo   getline_safe __PROTO ((char **_lineptr, size_t *_n, FILE *_stream,
18e77048c1Stholo                          int limit));
19e77048c1Stholo int
205e617892Stholo   getstr __PROTO ((char **_lineptr, size_t *_n, FILE *_stream,
21e77048c1Stholo 		   char _terminator, int _offset, int limit));
2213571821Stholo 
2313571821Stholo #endif /* _getline_h_ */
24