TRIM
Arjen Markus
arjen.markus895@gmail.com
Fri Jul 18 08:54:00 GMT 2014
Hi Salvatore,
AFAIK, it is supposed to remove blanks - so "space" only. It is not
supposed to remove whitespace (space, tab, newline ...)
That said, it would have been nice if you could have specified a range
of characters to be removed, like "0" or char(9). Something along the
lines of:
write(*,*) trim( string, char(9)//char(10)//char(13) ). I have not
checked the newer standards for this possibility.
Regards,
Arjen
2014-07-18 10:47 GMT+02:00 Salvatore Filippone <filippone.salvatore@gmail.com>:
> Hi all
> Is TRIM() supposed to delete TAB characters or not?
> I just discovered (the hard way) that at least in 4.8 it does not, and
> that makes for some surprises for novice users.
>
> Thanks
> Salvatore
More information about the Fortran
mailing list