OS Manuals

tab(3ast)

tab - simple table lookup routines

TAB(3ast) TAB(3ast)

tab - simple table lookup routines

#include <ast.h>

int tabindex(const void* tab, int size, const char* name); void* tablook(const void* tab, int size, const char* name);

These routines do linear lookups in small tables (on the order of 32 elements). Each table element has a size of size bytes and the beginning of the element points to a name that is matched by the lookup routines.

tabindex returns the index of the table element in tab that matches name. If there is no match then -1 is returned.

tablook returns a pointer to the table element in tab that matches name. If there is no match then 0 is returned.

hash(3)

ksh 1.0.10-r36 · os · ingested 2026-09-30