#ifndef __FINDTOK_H
#define __FINDTOK_H

typedef struct
{
   const char *token;
   int   id;
} token_t;

typedef struct
{
    const token_t *tokens;
    int ntokens;
    int bsearchable;
} token_list_t;

void make_token_list(token_list_t *dst, token_t *src);
int  find_token(token_list_t *, const char *);

#endif


syntax highlighted by Code2HTML, v. 0.9.1