| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

tok_free

#include "sfltok.h"
void
tok_free (
    char **token_list)

Synopsis

Frees the memory allocated by a tok split() call. You should call this function for each call to tok split(), to avoid memory leaks. Do not try to free the allocated memory yourself, as the structure of a token list is not documented and may change over time.

Source Code - (sfltok.c)

{
    if (token_list)
      {
        token_list--;                   /*  Back-up to get right address     */
        mem_free (token_list [0]);      /*  Free buffer                      */
        mem_free (token_list);          /*    and free token list            */
      }
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation