en

tab.3


Introduction to Library Functions                          TAB(3)

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
     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.

SEE ALSO
     hash(3)

SunOS 5.10                Last change:                          1


Generated by GNU enscript 1.6.4.

Tags:
Created by admin on 2009/10/26 12:15
Last modified by admin on 2009/10/26 12:15

Collectives

Project ksh93-integration Pages


XWiki Enterprise 2.7.1.34853 - Documentation