Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. [2/6/16, 8:10 PM] Antares Chen (antares21chen@gmail.com): Like the docs says this /*
  2. * this function should read in every word in the dictionary and
  3. * store it in the dictionary. You should first open the file specified,
  4. * then read the words one at a time and insert them into the dictionary.
  5. * Once the file is read in completely, exit. You will need to allocate
  6. * (using malloc()) space for each word. As described in the specs, you
  7. * can initially assume that no word is longer than 60 characters. However,
  8. * for the final 20% of your grade, you cannot assumed that words have a bounded
  9. * length You can NOT assume that the specified file exists. If the file does
  10. * NOT exist, you should print some message to standard error and call exit(0)
  11. * to cleanly exit the program. Since the format is one word at a time, with
  12. * returns in between, you can
  13. * safely use fscanf() to read in the strings.
  14. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement