Re: VS2005 conversion of '\n\r' to 0x0D0A

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



David F. wrote:
[...] to me, setting a word value *((WORD*) ptr)='\n\r' is clear

The C or C++ standard doesn't make any requirements on what '\n\r' has to
be, it is simply implementation-defined IIRC. Use memcpy().

Uli

--
C++ FAQ: http://parashift.com/c++-faq-lite

Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
.



Relevant Pages

  • Re: How to _Spell_ Chromatic Scales
    ... that I said "screw you already David". ... > Your post should have illustrated the standard chromatic scale in the ... > that's standard or not. ... _did_ get it right the first time around, ...
    (alt.guitar.beginner)
  • Re: Other issues with the FAQ
    ... Only the standard itself does that. ... though the C99 standard does. ... >> it should be mentioned in the FAQ anyway. ... Why would be Steve any different? ...
    (comp.lang.c)
  • Re: Other issues with the FAQ
    ... > shows no signs of intending to change the FAQ in this direction. ... > for anyone interested in portable C programming, ... As a group, we discuss "standard" C, and are quick to point out the ... C99. ...
    (comp.lang.c)
  • Re: Harry Haters!
    ... dmclallen@xxxxxxxxx (David) wrote; ... > Hildr Katze wrote: ... >LOL! ... The standard is that these people don't ...
    (alt.fan.harry-potter)
  • Re: Godel proved maths inconsistent not incompleteness theorem
    ... sentences coincide with the unrefutable ones, ... Why not just say Rosser's theorem itself is "standard"? ... can give an even shorter proof. ... David C. Ullrich- Hide quoted text - ...
    (sci.logic)