Re: [Dev-C++] FileContent function...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: David M. <dem...@uw...> - 2003-04-10 12:45:53
|
Looks like an erroneus character was inserted by the mailing list. Ignore
it and any other '3D's you see. The =s are supposed to be there.
At 11:24 PM 09/04/2003 -0700, lamont wrote:
>>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??
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
>for complex code. Debugging C/C++ programs can leave you feeling lost and
>disoriented. TotalView can help you find your way. Available on major UNIX
>and Linux platforms. Try it free. www.etnus.com
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|