Anonymous user
Empty string: Difference between revisions
→{{header|Forth}}
Line 455:
=={{header|Forth}}==
Strings are represented as an addr-len pair on the stack. An empty string has len 0.
<lang forth>: empty? ( c-addr u -- ? ) nip 0= ;</lang>
|