problem with C compiler in DU 4.0d

From: shirish jani <shirish_jani_at_hotmail.com>
Date: Mon, 05 Jul 1999 05:22:31 -0700 (PDT)

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
Received on Mon Jul 05 1999 - 12:24:40 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT