From owner-freebsd-hackers Thu Oct 26 02:37:27 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id CAA28752 for hackers-outgoing; Thu, 26 Oct 1995 02:37:27 -0700 Received: from tfs.com (tfs.com [140.145.250.1]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id CAA28747 for ; Thu, 26 Oct 1995 02:37:21 -0700 Received: from critter.tfs.com by tfs.com (smail3.1.28.1) with SMTP id m0t8OkS-0003xWC; Thu, 26 Oct 95 02:37 PDT Received: from localhost (localhost [127.0.0.1]) by critter.tfs.com (8.6.11/8.6.9) with SMTP id KAA00675 for ; Thu, 26 Oct 1995 10:37:18 +0100 X-Authentication-Warning: critter.tfs.com: Host localhost didn't use HELO protocol To: hackers@freebsd.org Subject: cpp question Date: Thu, 26 Oct 1995 10:37:18 +0100 Message-ID: <673.814700238@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-hackers@freebsd.org Precedence: bulk My new testament is at home, can somebody tell me in the meantime: What do I write in a macro to make a token a string ? I want to do something like this: #define FOO(ptr,fmt,name) \ printf("%s =" fmt "\n", XXXX, (ptr)->name) What do I need to put at XXXX ? to convert the name to "name" ? Thanks in advance, -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Just that: dried leaves in boiling water ?