#include <stdio.h>
#include <stdbool.h>
#include "anagram.h"
#include "reading.h"

void test (char *word) {
  printf ("Anagrams of %s: \n", word);
  printAnagrams (word, "");
}

int main (void) {
  readWords ("dict.txt"); /*Do this just once*/
  test ("case"); /*case is the only anagram*/
  test ("abcd"); /*no anagrams*/
  test ("horse"); /*horse and shore*/
  test ("officekey"); /*14 anagrams*/
  return 0;
}

