NAME

sep_get_val_by_index - get key value by index


SYNOPSIS

ierr=sep_get_val_by_index(tag_history,record_number,key_index,n_values,values)


INPUT PARAMETER

char* - tag_history
         tag of History File
int* - record_number
         Header Record Number computed using sep_get_subspace_pointers
int* - key_index
         Key Index of Header Key
int* - n_values
         Number of Values to be written in contiguos records.


OUTPUT PARAMETER

void*- values
         Header Values of type Key Type


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


DESCRIPTION

        Get header values by given key index


COMMENTS

   return=sep_get_header_bytes(char *tag_history, int *n_bytes)
   i_byte=(record_number-1)*n_bytes+(key_index-1)*n_bytes_value
   sseek into the Header Format File at position i_byte
   sreed2 from Header Format File into values


LIBRARY

sep3d