<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
In Transient String Words in String Library
Searches the topmost string on the string stack for the ascii character char, returning its position, or -1 if not found. Note: the first character in the string is character #0.
$" redgreenblue" ascii b findc$ . \ displays 8
$" redgreenblue" ascii b findc$ .
An error occurs if the string stack is empty.