tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: shirish jani <shirish_jani () hotmail ! com>
To: tru64-unix-managers
Subject: problem with C compiler in DU 4.0d
Date: Mon, 05 Jul 1999 12:22:31 +0000	[thread overview]
Message-ID: <96079058315698.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~1999-07-05 12:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox