TAB(3)
π TAB(3) β Library Functions Manual π
okay bestie, this is TAB(3) from the Library Functions Manual β the simple table lookup routines chapter, and itβs lowkey iconic in a βtiny lookup tableβ way. π«Ά
β¨ NAME β¨
tab β simple table lookup routines
π SYNOPSIS π
#include <ast.h>
int tabindex(const void* tab, int size, const char* name); void*
tablook(const void* tab, int size, const char* name);
π DESCRIPTION π
so these routines are doing linear lookups in small tables β like, on the order of 32 elements, not some giant main-character database. π
Each table element has a size of size bytes, and the beginning of the element points to a name that gets matched by the lookup routines. thatβs the whole shape of it, no cap. π¦
tabindexβ returns the index of the table element intabthat matchesname. if thereβs no match, it returns-1(rip, not found π).tablookβ returns a pointer to the table element intabthat matchesname. if thereβs no match, it returns0(empty-handed bestie π).
π¦ SEE ALSO π¦
k byeee β thatβs TAB(3) from the Library Functions Manual. π the footer is literally just TAB(3); no source/version/date line to report on this one, so thatβs the whole tea. π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms