home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!math.fu-berlin.de!news.th-darmstadt.de!backus.pu.informatik.th-darmstadt.de!wallmann
- From: wallmann@backus.pu.informatik.th-darmstadt.de (Natuerlich!)
- Subject: Re: Summary: Macro with variable number of arguments
- Sender: news@infoserver.th-darmstadt.de (The Usenet-News System)
- Message-ID: <1992Jul27.193601.25038@infoserver.th-darmstadt.de>
- Date: Mon, 27 Jul 1992 19:36:01 GMT
- References: <1992Jul25.140204.17746@fzi.de>
- Nntp-Posting-Host: backus.pu.informatik.th-darmstadt.de
- Organization: MSD software vault #9 @THD
- Keywords: macro arguments variable number summary
- Lines: 20
-
- Here is a third solution, I -think- although I have never looked at it
- that this method is used in WEB (some Knuth-product):
-
- #include <stdio.h>
-
- #define _ ,
- #define OUT( x) fprintf( stderr, x)
-
- main()
- {
- OUT( "%c%c%c%c%c " _ 'H' _ 'a' _ 'l' _ 'l' _ 'o');
- OUT( "%c%c%c%c\n" _ 'W' _ 'e' _ 'l' _ 't');
- }
-
-
- Nat!
- --
- Email: wallmann@backus.pu.informatik.th-darmstadt.de
- "Bang that bit that doesn't bang"
- Waiting for the time when chips are measured in color.
-