swh:1:snp:9ca9e75279df5f4e3fee19bf5190ed672dcdfb33
Raw File
Tip revision: 48b04b07e10aba45cb8a4e4ef4a61e0aa539d202 authored by Jim Meyering on 03 January 1996, 05:55:26 UTC
Fix comments.
Tip revision: 48b04b0
readtokens.h
#ifndef H_READTOKENS_H
#define H_READTOKENS_H

#ifndef INITIAL_TOKEN_LENGTH
#define INITIAL_TOKEN_LENGTH 20
#endif

#ifndef TOKENBUFFER_DEFINED
#define TOKENBUFFER_DEFINED
struct tokenbuffer
{
  long size;
  char *buffer;
};
typedef struct tokenbuffer token_buffer;

#endif /* not TOKENBUFFER_DEFINED */

void init_tokenbuffer (token_buffer *tokenbuffer);

long
  readtoken (FILE *stream, const char *delim, int n_delim,
	     token_buffer *tokenbuffer);
int
  readtokens (FILE *stream, int projected_n_tokens,
	      const char *delim, int n_delim,
	      char ***tokens_out, long **token_lengths);

#endif /* not H_READTOKENS_H */
back to top