Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

OSS Library Calls (t - v) tsearch(3)
RETURN VALUES
If a node is found, the tsearch() function inserts the entry and returns a pointer to the newly
inserted entry.
The tsearch( ) function returns a null pointer when there is not enough space available to create a
new node. The tsearch() function also returns a null pointer if rootp is a null pointer on entry.
RELATED INFORMATION
Functions: bsearch(3), hsearch(3), lsearch(3), tfind(3), tdelete(3), twalk(3), qsort(3).
527187-017 Hewlett-Packard Company 767