tsounakis

add_to_dict

May 5th, 2020
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. void add_to_dic(FILE* dic, char word[N])
  2. {
  3.     dic = fopen("dic.txt", "r+");
  4.     fseek(dic, 0, SEEK_END);
  5.     fprintf(dic, "%s\n", word);
  6.     fclose(dic);
  7.     return;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment