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

 

tok_text_size

#include "sfltok.h"
size_t
tok_text_size (
    char **token_list)

Synopsis

Returns size of specified token list, in characters. Counts the size of each token, plus one terminator for each token. Thus the table "This", "Is", "A", "String" will return a size of 17.

Source Code - (sfltok.c)

{
    size_t
        text_size;
    int
        word_nbr;

    text_size = 0;
    for (word_nbr = 0; token_list [word_nbr]; word_nbr++)
        text_size += strlen (token_list [word_nbr]) + 1;

    return (text_size);
}

| << | < | > | >> iMatix Copyright © 1996-98 iMatix