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


DUP$ Search:

In Transient String Words in String Library

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

Duplicates the topmost string on the string stack.

Example:

$" Hello!" DUP$ $.s \ push Hello! to the string stack, duplicate it, and display the string stack.

Comment:

A run-time error shall occur if the string stack is empty, or is there is insufficient space on the string stack to accomdate the string.

See Also: DUP 

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