ZCOM C I/F Library Routines
PTFIND (3X)
Method 2: Retrieve the next terminal whose table has a sequence of matching bytes.
This method compares the contents of the physical terminal tables within a group, and locates the one that matches a byte sequence. In addition to the data buffer, table location and number of bytes to be compared, the caller also specifies a terminal ZLU within the group to be searched.
In order to make it easier to handle multiple matches in a group, the search starts from the next terminal following the specified ZLU. Hence, a returned terminal ZLU may be used in the next ptfind call to locate the next matching terminal. In this case, the whole group is searched if a terminal is returned the second time.
Chapter 4 | 163 |