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

37 lines
763 B
C
Raw Normal View History

1995-01-27 05:37:03 +00:00
#ifndef H_READTOKENS_H
1996-07-15 03:56:06 +00:00
# define H_READTOKENS_H
1995-01-27 05:37:03 +00:00
1996-07-15 03:56:06 +00:00
# ifndef INITIAL_TOKEN_LENGTH
# define INITIAL_TOKEN_LENGTH 20
# endif
1995-01-27 05:37:03 +00:00
1996-07-15 03:56:06 +00:00
# ifndef TOKENBUFFER_DEFINED
# define TOKENBUFFER_DEFINED
1995-01-27 05:37:03 +00:00
struct tokenbuffer
{
long size;
char *buffer;
};
typedef struct tokenbuffer token_buffer;
1996-07-15 03:56:06 +00:00
# endif /* not TOKENBUFFER_DEFINED */
1995-01-27 05:37:03 +00:00
1996-07-15 03:56:06 +00:00
# undef __P
# if defined (__STDC__) && __STDC__
# define __P(x) x
# else
# define __P(x) ()
# endif
1996-02-01 06:13:54 +00:00
void init_tokenbuffer __P ((token_buffer *tokenbuffer));
1995-01-27 05:37:03 +00:00
long
1996-02-01 06:13:54 +00:00
readtoken __P ((FILE *stream, const char *delim, int n_delim,
token_buffer *tokenbuffer));
1995-01-27 05:37:03 +00:00
int
1996-02-01 06:13:54 +00:00
readtokens __P ((FILE *stream, int projected_n_tokens,
1995-01-27 05:37:03 +00:00
const char *delim, int n_delim,
1996-02-01 06:13:54 +00:00
char ***tokens_out, long **token_lengths));
1995-01-27 05:37:03 +00:00
#endif /* not H_READTOKENS_H */