teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

条件の不備

2015/07/15 19:25

投稿

KenTerada
KenTerada

スコア751

answer CHANGED
@@ -25,7 +25,7 @@
25
25
  #include <string.h>
26
26
 
27
27
 
28
- const char del_list[] = {' ', '\t', '\n'};
28
+ const char del_list[] = {' ', '\t', '\n', '.', ','};
29
29
  const char *pos_list[] = {"my", "your", "his", "her", "their"};
30
30
 
31
31
  char *get_next_word(FILE *fp, char buf[], int max, int *pos);