Commit 625358956a009f92051bff263286d8735f0c9255

Authored by bjeanlou
1 parent a0fe64d2

Update1 dico

Showing 1 changed file with 9 additions and 2 deletions   Show diff stats
... ... @@ -19,7 +19,10 @@ byte end_kind(const string s){
19 19 while(islower(s[i]));
20 20 }
21 21 else {//if isupper(s[0])
22   -
  22 + endKind=2;
  23 + if(!isalpha(s[1])){
  24 +
  25 + }
23 26 }
24 27 endKind*=( (s[i]=='\0') + 2* (s[i]=='\''&&s[i+1]=='s'&&s[i+2]=='\0') );
25 28 return endKind;
... ... @@ -30,5 +33,9 @@ bool is_word(const byte endKind){
30 33 }
31 34  
32 35 bool addto_dico(dico d,string s){
33   - if(is_word()
  36 + if(!is_word(end_kind(s))){
  37 + printf("incorrect word");
  38 + return true;
  39 + }
  40 +
34 41 }
... ...