c_pxinxd - Returns the index of the first element different from val

SYNTAX

#include "worgen.h"

FUNCTION c_pxinxd (in, val, ns, index, dtype)

     long               *in;
     long               *val;
     long               *ns;
     long               *index;
     long               *dtype;

PARAMETERS

in (input, 'dtype')

Input array.

val (input, 'dtype')

Value to elements in array to be skipped. Must be same type as in.

ns (input, integer)

Number of elements in the input array.

index (output, integer)

Index into array of first value not equal to val.

dtype (input, integer)

Integer value representing the type of data. Legal values include:

     = EBYTE(1):     unsigned byte data
     = EWORD(2):     signed two byte data
     = ELONG(3):     signed four byte data
     = EREAL(4):     real*4 data

DESCRIPTION

c_pxinxd() searches an array to find the first value in the array which is not equal to the value specified in the variable val.

RETURN VALUE

c_pxinxd() returns

     E_SUCC --> successful completion
     TYPERR --> invalid type specified