Next: , Previous: , Up: Other I/O   [Contents][Index]


5.19.3 String Formats

Forth commonly uses two different methods for representing character strings:

Standard Forth encourages the use of the cell pair 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.