String symbol_string(table, symbol)

- returns string corresponding to symbol SymbolTable table; int symbol;

int string_symbol(table, string)

- returns symbol corresponding to string SymbolTable table; String string;

A symbol table is an array that keeps pairs of strings and integers. The structure used is known to clients:
typedef struct symtable_struct {
      String string; 
      int    symbol;
} SymbolBinding;
The functions take a table as parameter and return the part of the pair that is not given.
The last entry of the symbol table must be {ILL_STRING, ILL_SYMBOL}.

symtable.c symtable.h