c语言,补全一下这个代码

img
在上面的例子中,ful是命令行参数,所以只打印以ful结尾的单词,joyful, useful, lawful, mouthful

img
输出Hello是因为它的结尾与第一个命令行参数(llo)匹配。
there的结尾与任何命令行参数不匹配,因此不打印。
My被打印出来是因为它的结尾与第二个命令行参数(y)匹配。
name、ayeaye和is的结尾与任何命令行参数不匹配,因此不打印。
shrey的结尾与第二个和第三个命令行参数(y和rey)匹配,因此输出两次。

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define MAX_LINE_SIZE 1024

int main(int argc, char *argv[]) {

// PUT YOUR CODE HERE
// You may define your own functions and call them

return 0;

}

int main(int argc, char *argv[]) {
   char ch[100];
   while(scanf("%s",ch) != EOF)
    {
          for(int i=1;i<argc;i++)
          {
                if(strstr(ch,argv[i]) != NULL)
                      printf("%s\n",ch);
          }
    }
 
return 0;
}

看不懂