David
Thu Jul 15 09:13:04 CDT 2004
"Andru" <andru123 at hotmail dot com> wrote in message
news:%23pePE8maEHA.2340@TK2MSFTNGP09.phx.gbl...
> "Heinz Ozwirk" <wansor42@gmx.de> wrote in message
> news:cd5o5d$p4b$04$1@news.t-online.com...
>
> >Do what? The last line of code does work and initializes str with
a string
> of characters 0x0B, 0x08 and 0x15. Numbers following \ in a string
or char
> literal are octal. If you want a string starting with carriage
return and
> linefeed you should write "\x0D\x0A..." or "\15\12..." or
"\r\n...".
>
> ^^ Unfortunately it initializes it to a string "\13\10\25" -
exactly as you
> see it (9 chars).
Octal constants start with a leading zero, just as hexadecimal ones
start with 0x. You therefore need
"\015\012"
to get characters number thirteen and ten.
Dave
--
David Webber
Author MOZART the music processor for Windows -
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mzusers/mailinglist.htm