Re: add a0 format to language to print trimmed character variables
- From: dpb <bozarth.d@xxxxxxxxx>
- Date: 28 Apr 2007 07:00:00 -0700
On Apr 28, 5:07 am, glen herrmannsfeldt <g...@xxxxxxxxxxxxxxxx> wrote:
Richard Maine wrote:....
(someone wrote)
I don't see that as analogous. Or at any rate, I don'tI wish there were an "a0" format for character variables, analogous to
i0 for integers, which would not print trailing spaces in character
variables.
think it a robust analogy.
The i0 for integers doesn't modify the value printed out. It just avoids
adding blank padding characters.
For the character case, you aren't talking about padding. Instead, you
are talking about modifying the value printed out, as the blanks are
part of the value.
But there is already an A descriptor that doesn't add padding, and
that is just A. Why isn't the no padding I descriptor just I?
I don't think that's a standard interpretation of the A descriptor --
the implied width of field with a missing field width specifier is a
compiler-supplied default. For the A descriptor, the default is the
actual length of the specified i/o item.
.
- Follow-Ups:
- References:
- add a0 format to language to print trimmed character variables
- From: Beliavsky
- Re: add a0 format to language to print trimmed character variables
- From: michael
- Re: add a0 format to language to print trimmed character variables
- From: Richard Maine
- Re: add a0 format to language to print trimmed character variables
- From: glen herrmannsfeldt
- add a0 format to language to print trimmed character variables
- Prev by Date: Re: mpi & xlf
- Next by Date: Re: error with "if" !!!
- Previous by thread: Re: add a0 format to language to print trimmed character variables
- Next by thread: Re: add a0 format to language to print trimmed character variables
- Index(es):
Relevant Pages
|
|