* problem with C compiler in DU 4.0d
@ 1999-07-05 12:22 shirish jani
0 siblings, 0 replies; only message in thread
From: shirish jani @ 1999-07-05 12:22 UTC (permalink / raw)
To: tru64-unix-managers
Respected managers,
I am facing problem in using printf() for printing arguments in variable
order as mentioned in "man 3 printf" man pages on Digital UNIX ver 4.0d. It
is working properly on SunOs 5.6 and SGI IRIX 6.3.
The sample code is
***************
#include <stdio.h>
main()
{
printf("%3$d", 1, 2,3);/* print 3rd argument in %d format */
}
On SGI IRIX and SunOS it prints correct result i.e. third argument 3, but on
DU 4.0d this code segment doesnt work.Function printf() returnts -1 with
errno 0. Where I am going wrong?, any help is appriciated.
Thanks in advance and Regards,
Shirish Jani
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-07-05 12:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-05 12:22 problem with C compiler in DU 4.0d shirish jani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox