Re: VS2005 conversion of '\n\r' to 0x0D0A
- From: Ulrich Eckhardt <eckhardt@xxxxxxxxxxxxxx>
- Date: Wed, 05 Nov 2008 09:04:52 +0100
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
.
- Follow-Ups:
- Re: VS2005 conversion of '\n\r' to 0x0D0A
- From: Tim Roberts
- Re: VS2005 conversion of '\n\r' to 0x0D0A
- References:
- VS2005 conversion of '\n\r' to 0x0D0A
- From: David F.
- VS2005 conversion of '\n\r' to 0x0D0A
- Prev by Date: Re: Finding <atlbase.h>
- Next by Date: Re: Requesting sample code!
- Previous by thread: Re: VS2005 conversion of '\n\r' to 0x0D0A
- Next by thread: Re: VS2005 conversion of '\n\r' to 0x0D0A
- Index(es):
Relevant Pages
|