/* function protos for util module */ #define LF 10 #define CR 13 #define MAX_ENTRIES 10000 #define MAX_COMMANDLINE 100 #define TRUE 1 #define FALSE 0 #define STRING_SIZE 256 #define N_STRINGS 100 /* shared with masterform */ #define DOC_EXISTS -11 #define DOC_DOES_NOT_EXIST -12 #define ACCESS_DENIED -13 #define FILE_NOT_COPIED -14 void getword(char *word, char *line, char stop); char *makeword(char *line, char stop); char *fmakeword(FILE *f, char stop, int *cl); char x2c(char *what); void unescape_url(char *url); void plustospace(char *str); int rind(char *s, char c); int getline(char *s, int n, FILE *f); void send_fd(FILE *f, FILE *fd); char *strlcase (char *str); char *stripLeadingBlanks (char *str); char *stripTrailingBlanks (char *str); char *stripBlankLines(char *str); int fileExists (char *file); char *rfc1123date(); char *tilde_sub(char *fname);