[fortran, documentation, patch] intrinsic.texi: fix examples
Brooks Moses
bmoses@stanford.edu
Tue Apr 24 10:42:00 GMT 2007
At 01:16 AM 4/24/2007, Daniel Franke wrote:
>On Tuesday 24 April 2007 10:00:44 Brooks Moses wrote:
>
> > One little question, though. On this change:
> > > - CHARACTER(len=*) :: str = "gfortran"
> > > + CHARACTER(len=10) :: str = "gfortran"
> >
> > Why len=10, rather than len=8?
>
>The example (FPUT) continues with a DO loop,
> > DO i = 1, len_trim(str)
>
>There should be something to trim as more often than not strings are padded
>with whitespace, in my rather short experience at least.
Sounds like an excellent reason to me. Good choice! :)
- Brooks
More information about the Gcc-patches
mailing list