Blame view

dico.c 312 Bytes
0bc3d1ad   bjeanlou   dico created
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  #include "dico.h"
  
  void make_empty_dico(dico d){
    for(int i=0;i<NB1CHAR;i++)
      d[i]=NULL;
  }
  void delete_dico(dico_d){
    for(int i=0;i<NB1CHAR;i++)
      delete_tree(d[i]);
  }
  
  
  int hash2(char c){
    //needs to check isalpha==true
    if(c<='Z')
      return c-'A';
    return c-'a'+26;
  }
  bool addto_dico(dico,string){}