> With interest I followed the discussion about Petros' problem, and
> in particular the tricky solution posted by Richard. Would it
> also be possible (and how?), if the length of the resulting
> character string is the outcome of a much more complex character
> function than len_trim? The reason I'm asking is that I've
> written a function to convert numbers into character strings,
> like the internal write, but for special formats, etc., and it
> keeps annoying me that I always have to use this function wrapped
> in a trim command, instead of having the trim integrated into
> the function.
A function that converts an integer to a character string
with neither leading nor trailing blanks is given in my book:
"Algorithms and Data Structures in F and Fortran" pp. 195-6
ISBN 0-9640315-4-1.
The function runs in F90.
> TIA for any suggestions.
> Roland
>
> +----------------------------------------------------------------------+
> | Roland Schilling Home-Office: +49(89)32929-670 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|