... almost1
There can be trouble with applications which use libkvm or access /proc.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
... error.2
In fact, the standard says simply that the effect of the call is undefined in this case. Furthermore, it seems that the three currently supported systems handle these cases without any undesirable behaviour; presumably the compilers are written such that all arguments are passed in 64 bits or in registers. But such code is still not correct.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
...cdiouxX*3
Note the inclusion of the c format specifier in this list. Although the corresponding argument will typically be of type char, it is promoted to int by the usual mechanism before being passed to printf. If the type of the actual argument is of type char and not type INT_BIG of course, no change will be required here.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

Starlink System Note 73
Mark Taylor
13 August 2001
E-mail:ussc@star.rl.ac.uk

Copyright © 2001 Council for the Central Laboratory of the Research Councils