String length: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) m (→Byte Length: forgot lang closer) |
(Added solution for Action!) |
||
Line 223: | Line 223: | ||
.include "../includeARM64.inc" |
.include "../includeARM64.inc" |
||
</lang> |
</lang> |
||
=={{header|Action!}}== |
|||
<lang Action!>PROC Test(CHAR ARRAY s) |
|||
PrintF("Length of ""%S"" is %B%E",s,s(0)) |
|||
RETURN |
|||
PROC Main() |
|||
Test("Hello world!") |
|||
Test("") |
|||
RETURN</lang> |
|||
{{out}} |
|||
[https://gitlab.com/amarok8bit/action-rosetta-code/-/raw/master/images/String_length.png Screenshot from Atari 8-bit computer] |
|||
<pre> |
|||
Length of "Hello world!" is 12 |
|||
Length of "" is 0 |
|||
</pre> |
|||
=={{header|ActionScript}}== |
=={{header|ActionScript}}== |
||
===Byte length=== |
===Byte length=== |