find number of bytes from a file

#include<stdio.h>
void file(char*);
int main()
{
char filename[]="C:\\Documents and Settings\\Administrator\\My Documents\\a.txt";
char (*newfile)();
newfile=file;
newfile(filename);
system("pause");
return 0;
}
void file(char *filename)
{
int length=0;
FILE *fptr;
fptr=fopen(filename,"r");
if(fptr==NULL)printf("error in file");
else
{
fseek(fptr,0,SEEK_END);
length=ftell(fptr);
}
printf("%d bytes in the file",length);

}