CFindW

Scans an array of WORDs for a particular value.

Thread Context:Non-Blocking

Syntax

    LONG CFindW (
       WORD   value,
       WORD  *address,
       LONG   count
    );
    

Parameters

value
(IN) Target value being searched for.
address
(IN) Points to the starting address of the array.
count
(IN) Maximum number of WORDs to scan.

Return Values

The following table lists return values and descriptions.

-1

The target value is not found

Index of the address where the target value was found in the array.

Remarks

CFindW scans the array of WORDs pointed to by address either until value is found or the maximum number of WORDs specified in count are scanned.