AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

HSEARCH ( 3C ) HSEARCH ( 3C ) START Place new entries at the beginning of the linked list (default is at the end). SORTUP Keep the linked list sorted by key in ascending order. SORTDOWN Keep the linked list sorted by key in descending order. Additionally, there are preprocessor flags for obtaining debugging printout ( -DDEBUG) and for including a test driver in the calling routine ( -DDRIVER). The source code should be consulted for further details. SEE ALSO bsearch(3C), lsearch(3C), string(3C), tsearch(3C). DIAGNOSTICS Hs earch returns a NULL pointer if either the action is FIND and the item could not be found or the action is ENTER and the table is full. Hcreate returns zero if it cannot allocate sufficient space for the table. BUGS Only one hash search table may be active at any given time. - 2-

HYPOT ( 3M ) HYPOT (3M) NAME hypot - Euclidean distance function SYNOPSIS #include < ma.th.h > double hypot (x, y) double x, y; DESCRIPTION Hypot returns sqrt(x * x + y * y), taking precautions against unwarranted overflows. DIAGNOSTICS When the correct value would overflow, hypot returns HUGE and sets errno to ERANGE. These error-handling procedures may be changed with the function matherr(3M). SEE ALSO matherr(3M). - 1 -

HSEARCH ( 3C ) HSEARCH ( 3C )<br />

START Place new entries at the<br />

beginning of the linked list<br />

(default is at the end).<br />

SORTUP Keep the linked list sorted<br />

by key in ascending order.<br />

SORTDOWN Keep the linked list sorted<br />

by key in descending order.<br />

Additionally, there are preprocessor flags for obtaining debugging<br />

printout ( -DDEBUG) and for including a test driver in the calling<br />

routine ( -DDRIVER). The source code should be consulted for<br />

further details.<br />

SEE ALSO<br />

bsearch(3C), lsearch(3C), string(3C), tsearch(3C).<br />

DIAGNOSTICS<br />

Hs earch returns a NULL pointer if either the action is FIND and<br />

the item could not be found or the action is ENTER and the table<br />

is full.<br />

Hcreate returns zero if it cannot allocate sufficient space for the<br />

table.<br />

BUGS<br />

Only one hash search table may be active at any given time.<br />

- 2-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!