Programming-in-C
Programming-in-C copied to clipboard
chapter09/ex1/9.9.c overflow
starting from line 56
char word[10];
int entries = 10;
int entry;
int lookup(const struct entry dictionary[], const char search[],
const int entries);
printf("Enter word: ");
scanf("%14s", word);
patch should be: char word[10]; int entries = 10; int entry;
int lookup(const struct entry dictionary[], const char search[],
const int entries);
printf("Enter word: ");
// scanf("%14s", word); scanf("%9s", word);