不能正常输出?怎么回事?谢谢
程序代码:#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
int PS=5,i=0;
char **ps=calloc(PS,sizeof(char *));
char buf[20]={0};
printf("please input strings\n");
fgets(buf,20,stdin);
while(buf[0]!='\n')
{
*(ps+i)=buf;
i++;
fgets(buf,20,stdin);
}
for(int j=0;j<i;j++)
printf("%s\n",*(ps+j));
}








