Re: [Dev-C++] FileContent function...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2003-04-10 06:16:16
|
There are mail encodings that uses a '=' and some more characters to
encode non-printable characters. Since the '=' is a break character, a
normal '=' must then also be encoded - in this case with '=3D'.
The mail sender program - or your receiving program - failed to process
this encoding correctly. Wherever you see '=3D' the real text just
contains an '=' character.
One issue with the '=xx' encoding is that some versions of mail
encoders (I think of M$ brand) forgets to convert the single '=' to
'=3D' breaking a lot of decoding software.
/Per W
On Wed, 9 Apr 2003, 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
>
|