how has C bitten you?

Guy Harris guy at sun.uucp
Tue Aug 13 19:45:27 AEST 1985


> Does anyone know what the proposed ANSI standard says about (%X meaning
> "print hexadecimal with capital A-F" instead of "print a "long" in
> hexadecimal with lower-case a-f", and likewise for %E and %G)?

It agrees with Systems III and V, Sun 4.2BSD, and, I believe, 4.3BSD - %X
means print an "int" in hex with capital A-F.

(Note that if you use %D, put a number followed by something else using a
%<something> format, and put your code under SCCS, you get a *big* surprise
- %D% gets expanded into the date...)

	Guy Harris



More information about the Comp.lang.c mailing list