Platform | x64, Win32 |
Purpose |
To look for a given string in an ordered array. |
Syntax |
SUBROUTINE CHSEEK@(ITEM,LIST,N,IRES)
|
Description |
Seeks the string ITEM in the sorted array LIST using a binary chop. Returns the position in IRES or 0 if not found. Note that the LIST array must be sorted in ascending dictionary order. |
Example |
PROGRAM FOOD |