printf zero-pads strings?
    Wm E Davidsen Jr 
    davidsen at crdos1.crd.ge.COM
       
    Wed Oct 25 05:09:37 AEST 1989
    
    
  
In article <20327 at mimsy.umd.edu>, chris at mimsy.umd.edu (Chris Torek) writes:
|  The 4.4BSD doprnt.c (essentially the one I posted to comp.lang.c) prints
|  "0000x".  This appears to conform to the letter of the standard (we wrote
|  the thing based on the letter of the standard!).
  I would be delighted if it workds that way, having a program which
uses it (input strings are digit sequences with leading zeros stripped),
now I ask you, what does "%-05x" give. I won't be on the machine with
your doprint until Friday, thought you might remember.
-- 
bill davidsen	(davidsen at crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)
"The world is filled with fools. They blindly follow their so-called
'reason' in the face of the church and common sense. Any fool can see
that the world is flat!" - anon
    
    
More information about the Comp.std.c
mailing list