int my_fgets1(FILE *fg)
{
FILE *p=fg;
if(p==NULL)
{
perror;
return -1;
}
char str[20];
int count=0;
while(fgets(str,sizeof(str),p)!=NULL)
{
count+=strlen(str);
}
fclose(p);
return count;
}