TokenExit()
Release global token environment
Syntax
TokenExit() -> lStaticEnvironmentReleased
Returns
<lStaticEnvironmentReleased> .T., if global token environment is successfully released
Description
The TokenExit() function releases the memory associated with the global token environment. One should use it for every tokeninit() using the global token environment. Additionally, TokenExit() is implicitly called from CTEXIT() to free the memory at library shutdown.
Examples
tokeninit( cString ) // initialize a token environment DO WHILE ! tokenend() ? tokennext( cString ) // get all tokens successivly ENDDO ? tokennext( cString, 3 ) // get the 3rd token, counter // will remain the same TokenExit() // free the memory used for the // global token environment
Compliance
TokenExit() is a new function in Harbour’s CT3 library.
Platforms
All
Files
Source is token2.c, library is libct.
Seealso
TOKENINIT(), TOKENNEXT(), TOKENNUM(), TOKENAT(), SAVETOKEN(), RESTTOKEN(), TOKENEND()
Pingback: Harbour String Functions | Viva Clipper !
Pingback: Harbour All Functions – T | Viva Clipper !