Author |
Message
Pages: 1
|
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1537] sizeof Array[] - posted: 2015-01-29 14:34:17 Code:
Also is it possible to use $echo like print()? For example: Code:
|
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1539] - posted: 2015-01-29 16:23:26 I think it may be worth to write a separate macro for such case... e.g. inline procedure echof ..... I may write one today to add to new rtl. As for size of, I will correct this. Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1554] - posted: 2015-01-30 16:44:00 OK, corrected sizeof and I have added a new macro $echof. Code:
Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1570] - posted: 2015-01-31 13:33:34 Don't know is it right or not: Code:
Result: Code:
Seems that zero-byte also was added to s1. But not in s3. |
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1573] - posted: 2015-01-31 13:48:20 Yes, consts add null byte, but arrays just use the data which was written in the string, adding null byte is users option. Edit: I have added string special char x for next release. e.g. Code:
Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1578] - posted: 2015-02-01 09:59:56 Another way -- use #define instead of const. But result the same. It strange Code:
And for example NASM version: Code:
Result: Code:
|
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1584] - posted: 2015-02-02 12:48:06 This is still normal behaviour, when assigning any string to an array, the null byte is not included unless you explicitly add it. Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
Currently Active Users: There are currently 9 user(s) online. 0 member(s) and 9 guest(s) Most users ever online was 1046, January 28, 2022, 2:08 pm. Statistics: Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51 Welcome to our newest member, yecate |