c_pxindr - Returns the index of the first element different from val. The array is searched from the end back.

SYNTAX

#include "worgen.h"

FUNCTION c_pxindr (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 of 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):     four byte floating point data

DESCRIPTION

c_pxindr() searches an array to find the first value in the array which is not equal to the value specified in the variable val. The array is searched from the end back.

RETURN VALUE

c_pxindr() returns

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