summaryrefslogtreecommitdiff
path: root/lib/getstr.h
blob: 367bf4e11647e7901ca5d409a682971cf7cd8c89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef GETSTR_H_
# define GETSTR_H_ 1

# include <stdio.h>

# ifndef PARAMS
#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
#   define PARAMS(Args) Args
#  else
#   define PARAMS(Args) ()
#  endif
# endif

int
getstr PARAMS ((char **lineptr, size_t *n, FILE *stream,
		int delim1, int delim2,
		size_t offset));

#endif