diff options
Diffstat (limited to 'data/raop-play/getline.h')
-rw-r--r-- | data/raop-play/getline.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/data/raop-play/getline.h b/data/raop-play/getline.h new file mode 100644 index 000000000..3bbad5698 --- /dev/null +++ b/data/raop-play/getline.h @@ -0,0 +1,23 @@ +#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. */ + +#define GETLINE_NO_LIMIT -1 + +int + getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream)); +int + getline_safe __PROTO ((char **_lineptr, size_t *_n, FILE *_stream, + int limit)); +int + getstr __PROTO ((char **_lineptr, size_t *_n, FILE *_stream, + int _terminator, int _offset, int limit)); + +#endif /* _getline_h_ */ |