Anonymous user
String length: Difference between revisions
Added solution for Action!
Puppydrum64 (talk | contribs) m (→Byte Length: forgot lang closer) |
(Added solution for Action!) |
||
Line 223:
.include "../includeARM64.inc"
</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}}==
===Byte length===
|