Menu

#18 C string nnn bytes long template is broken

v1.0 (example)
open
nobody
None
5
2015-11-12
2015-11-12
No

The Cnnn template is broken. It should be: "A C string that is nnn hex bytes long (The last byte is
always a 0, so the string itself occupies the first nnn-1 bytes.)"

It tries to do this, but mistakenly includes the C as part of the hex to determine byte count. It looks like it's one character index off, since it excludes the last character, but uses the C.

For example,
C0FF should be a string of 255 bytes in length.
C040 should be a string of 64 bytes in length.

In Rezilla,
C0FF is 3852 bytes in length (the value of F0C)
C040 is 1036 bytes in length (the value of 40C)

Discussion


Log in to post a comment.