int FileSize(FILE *fp)
{
int prev=ftell(fp);
fseek(fp, 0L, SEEK_END);
int size=ftell(fp);
fseek(fp,prev,SEEK_SET);
return size;
}
訂閱:
張貼留言 (Atom)
int FileSize(FILE *fp)
{
int prev=ftell(fp);
fseek(fp, 0L, SEEK_END);
int size=ftell(fp);
fseek(fp,prev,SEEK_SET);
return size;
}
0 意見:
張貼留言