treeh.c 427 Bytes
#include "treeh.h"

tree make_empty_tree(){
  return NULL;
}

void addto_tree(tree,char*,int){
  if
  
}
void loadfrom_file(tree,FILE*){}
void loadfrom_keyboard(tree){}

char is_empty(tree){
  int i;
  for(i=0;i<NBCHAR;i++){
    if(t->next[i]!=NULL)
      return 0;
  }
  return 1;
}
char is_end(tree t){
  return t->isEnd!=0;
}

int hash(char c){
  //needs to check c isalpha or ';
  if(c='\'')
    return 0;
  return c%64;
}