TRIM

N.M. Maclaren nmm1@cam.ac.uk
Fri Jul 18 09:35:00 GMT 2014


On Jul 18 2014, Arjen Markus wrote:
>
>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.

It's not there, and not likely to be included in the next version,
though it could be.  You can do it yourself using SCAN, a bit painfully.


Regards,
Nick Maclaren.



More information about the Fortran mailing list