CFindB

Scans an array of bytes for a particular value.

Thread Context:Non-Blocking

Syntax

    LONG CFindB (
       BYTE   value,
       BYTE  *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 BYTEs 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

CFindB scans the array of BYTEs pointed at by address either until value is found or the maximum number of BYTEs specified in count are scanned.