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 TE. Additionally, TOKENEXIT() is implicitly called from CTEXIT() to free the memory at library shutdown.
Examples
      tokeninit (cString) // initialize a TE
      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 TE
Status

Ready

Compliance

TOKENEXIT() is a new function in Harbour's CTIII library.

Platforms

All

Files

Source is token2.c, library is libct.

See Also