Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* How to define a function like printf in Tru64?
@ 2002-04-26  8:31 Jim Liu
  2002-04-29  8:02 ` Emmanuel Choquet
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Liu @ 2002-04-26  8:31 UTC (permalink / raw)


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)





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to define a function like printf in Tru64?
  2002-04-26  8:31 How to define a function like printf in Tru64? Jim Liu
@ 2002-04-29  8:02 ` Emmanuel Choquet
  0 siblings, 0 replies; 2+ messages in thread
From: Emmanuel Choquet @ 2002-04-29  8:02 UTC (permalink / raw)


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)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-29  8:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-26  8:31 How to define a function like printf in Tru64? Jim Liu
2002-04-29  8:02 ` Emmanuel Choquet

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