[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
strings containing ascii null
From: |
CdeMills |
Subject: |
strings containing ascii null |
Date: |
Tue, 13 Jul 2010 07:30:32 -0700 (PDT) |
Hello,
I'm having troubles displaying strings containing the null ascii code. More
specifically,
a="\0"
results in a string of length 1, but
size(do_string_escapes(a))
returns 0 0
I would expect it to display the string "^@", of size (1 1). I know that
null is used as C end-of-line, but then why does
size(do_string_escapes(char([0 0 97 0])))
return 1 3 ? Would it be possible for "do_string_escapes" to return a string
with the same length as octave input string ?
Regards
Pascal
--
View this message in context:
http://octave.1599824.n4.nabble.com/strings-containing-ascii-null-tp2287506p2287506.html
Sent from the Octave - General mailing list archive at Nabble.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- strings containing ascii null,
CdeMills <=