printf format
Scott Amspoker
scott at bbxsda.UUCP
Thu Dec 21 10:36:12 AEST 1989
In article <1940 at crdos1.crd.ge.COM> davidsen at crdos1.crd.ge.COM (Wm E Davidsen Jr) writes:
> Since I can't read the original poster's mind, I'll take a stab that
>he *might* be thinking of the * character, used to specify the width in
>an argument evaluated at runtime.
>
>Ex: n = 14; /* set field width */
> printf("Val: %*d sec", n, m);
No, the original, original poster wanted full numeric formatting capabilities
(you know, comma insertion and so forth). That's all I need - a full numeric
formatter linked in everytime I use printf().
--
Scott Amspoker
Basis International, Albuquerque, NM
(505) 345-5232
unmvax.cs.unm.edu!bbx!bbxsda!scott
More information about the Comp.lang.c
mailing list