!+ ! Function in4hetn (prompt, ivec, n_vec) result (istat) ! ! Prompt for and get an array of integers Entered in Hexadecimal ! Retry if ill formed. ! Return input value if entered. ! If "@" is the last non-blank char of prompt, "" will be substituted ! in place of the "@" where "nnnn, ..." are the default (input) values. ! ! Input: ! prompt -- Character(*): Prompt string. ! ivec(*) -- Integer: Input array values will be used as the default. ! ! Output: ! ivec(*) -- Integer: Return values. ! istat -- Integer: Status. 1 = OK. -1 = 'QUIT' typed. !- function in4hetn(prompt, ivec, n_vec) result (istat) use str_find_mod implicit none integer ivec(*), ival,dig,i,j, n, ic, istat, n_vec,llen character(*) prompt character(100) line, prompt2, c*1 logical inhex prompt2 = prompt n = len_trim(prompt2) if (prompt2(n:n) == '@') then prompt2(n:) = '