Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: emmanuel.choquet@compaq.com (Emmanuel Choquet)
Subject: Re: How to define a function like printf in Tru64?
Date: 29 Apr 2002 01:02:04 -0700	[thread overview]
Message-ID: <4618c6b9.0204290002.14b3ca8c@posting.google.com> (raw)
In-Reply-To: aab3ds$5dq@netnews.hinet.net

If you mean variable arguments, man stdarg (3) is your answer, at
least as entry point.

Cheers

"Jim Liu" <jjliu@cs.nchu.edu.tw> wrote in message news:<aab3ds$5dq@netnews.hinet.net>...
> Dear All,
> 
> I want to define a function like printf in Tru64.
> I know how to do it in Linux and Solaris, see below.
> But I don't know how to do it in Tru64.
> Do you have any idea?
> 
> Linux:
> #define PRINTOUT4( format, a...) \
> { \
>     printf("\n    "); \
>     printf( format, ## a); \
> }
> 
> Solaris:
> #define PRINTOUT4( format, ...) \
> { \
>     printf("\n    "); \
>     printf( format, __VA_ARGS__); \
> }
> 
> Thank you!
> 
> Jim (J. J. Liu)


      reply	other threads:[~2002-04-29  8:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-26  8:31 How to define a function like printf in Tru64? Jim Liu
2002-04-29  8:02 ` Emmanuel Choquet [this message]
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