|
From: lamont <lam...@ve...> - 2003-04-10 03:21:21
|
>Looks like what you actually want is something like this:
>char *FileContent(file *fp)
>{
> char *buf;
> // Open the file...
> int i =3D fseek(fp, SEEK_END) + 1;
> buf =3D malloc(sizeof(i));
> fseek(fp, SEEK_SET);
> for(char ch =3D fgetc(fp); ch !=3D EOF; buf++ =3D ch);
> return buf;
>}
What does the '=3D' do in the above function??
|