Next: Displaying characters and strings, Previous: Formatted numeric output, Up: Other I/O
Forth commonly uses two different methods for representing character strings:
ANS Forth encourages the use of the second format when representing strings.
count
c-addr1 – c-addr2 u core “count”
c-addr2 is the first character and u the length of the counted string at c-addr1.
For words that move, copy and search for strings see Memory Blocks. For words that display characters and strings see Displaying characters and strings.