NAME

sep_get_val_by_name - get header value by name


SYNOPSIS

ierr=sep_get_val_by_name(tag_history,record_number,key_name,n_values,value)


INPUT PARAMETER

char* - tag_history
        tag of History File
int* - record_number
        Header Record Number computed using sep_get_subspace_pointers
char* - key_name
        Key Name 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 Name is in Header Format File


DESCRIPTION

        Get header values by key name


COMMENTS

   return=sep_get_header_bytes(char *tag_history, int *n_bytes)
   return=sep_get_key_index(char *tag_history, char *key_name, int *key_index);
   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 value


LIBRARY

sep3d