#ifndef __TOOLS_H
#define __TOOLS_H

#include <stdio.h>

#define STR_SIZE 1024

typedef struct
  {
    char name[128];
    char val[128];
  } entry;

void html_error(char *msg);
char x2c(char *what);
void getword(char *word, char* line, char stop);
void atob(char *str, char a, char b);
void unescape_url(char *url);
void strip_char(char *str, char strip);
void replacechar2str(char *word, char find, char *replace);
char *makeword(char *line, char stop);
char *fmakeword(FILE *f, char stop, int *cl);


#endif
