<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


TRIM$ Search:

In Transient String Words in String Library

Word Name: TRIM$
Type: Standard word
Data Stack Signature: -- / ss: s1 -- s2
Return Stack Signature: --
Availability: V1.2
Description:

Removes leading and trailing spaces from the topmost string on the string stack.

Example:

$"     HELLO!     " trim$ len$ . \ displays 6

Comment:

An error occurs if the string stack is empty.

See Also: LTRIM$  RTRIM$ 

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>