NAME

sep_extract_val_by_index - extract a header value by its index


DESCRIPTION

  Extract n-values of Header Values associated with
        Key Index from vector of Header Values with mixed Header Types.


SYNOPSIS

sep_extract_val_by_index(tag_history,key_index,n_values,values,all_values)


INPUT PARAMETER

char*- tag_history
        tag of History File
int* - key_index
        Key Index of Header Key
int* - n_values
        Number of Values to be written in contiguos records.
void* - all_values
        Vector of Header Values with mixed Header Types


OUTPUT PARAMETER

void* - values
        Header Values at for Key Index


RETURN VALUE

 -1= if fails for other reasons
 0 =if successful
 +1 =if tag_history is a Sep77 History File
 +2= if tag_history is a Sep3d History File but
      no matching Key Index is in Header Format File


LIBRARY

sep3d