From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,612f3a69ee9ac12 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-04-29 01:02:05 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: emmanuel.choquet@compaq.com (Emmanuel Choquet) Newsgroups: comp.unix.tru64 Subject: Re: How to define a function like printf in Tru64? Date: 29 Apr 2002 01:02:04 -0700 Organization: http://groups.google.com/ Message-ID: <4618c6b9.0204290002.14b3ca8c@posting.google.com> References: NNTP-Posting-Host: 161.114.126.52 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1020067324 24403 127.0.0.1 (29 Apr 2002 08:02:04 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 29 Apr 2002 08:02:04 GMT Xref: archiver1.google.com comp.unix.tru64:7397 If you mean variable arguments, man stdarg (3) is your answer, at least as entry point. Cheers "Jim Liu" wrote in message news:... > 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)