Re: add a0 format to language to print trimmed character variables



On Apr 28, 5:07 am, glen herrmannsfeldt <g...@xxxxxxxxxxxxxxxx> wrote:
Richard Maine wrote:

(someone wrote)

I wish there were an "a0" format for character variables, analogous to
i0 for integers, which would not print trailing spaces in character
variables.
I don't see that as analogous. Or at any rate, I don't
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.

.



Relevant Pages

  • Re: add a0 format to language to print trimmed character variables
    ... The i0 for integers doesn't modify the value printed out. ... For the character case, you aren't talking about padding. ... I don't think that's a standard interpretation of the A descriptor -- ...
    (comp.lang.fortran)
  • [PATCH 36/70] ftdi_sio: Coding style
    ... unsigned short int divisor; ... /* Write an event character directly to the FTDI register. ... BmRequestType: 0100 0000B ... Configuration Descriptor ...
    (Linux-Kernel)
  • Re: Java: Cramer-Shoup 98 Crypto System
    ... > I have not been following the discussion on good padding in this group. ... > block padding is shorter than your TERMINATOR string. ... > that earlier Java dialects on Unix/Linux just treat this bit as part ... > of the character, others read the whole character as ...
    (sci.crypt)
  • Re: Encryption ??
    ... What do you think about my idea to add pad handling ... although I was actually only encrypting data that fit into 8 ... It is mentioned for the padding type I used (Method 3 - nulls plus ... in test.prg adds a whole 8 character block when needed. ...
    (comp.lang.clipper)
  • Re: RC4 works but DES does not
    ... last block (not just the size of the original message). ... use padding ... > and then process multiplied loop until get the last character in the string ... > I found some example of file encryption in similar way, when Cryptencrypt ...
    (microsoft.public.platformsdk.security)