From owner-freebsd-hackers Thu Oct 26 14:11:49 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA25665 for hackers-outgoing; Thu, 26 Oct 1995 14:11:49 -0700 Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id OAA25653 for ; Thu, 26 Oct 1995 14:11:45 -0700 Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id OAA21640; Thu, 26 Oct 1995 14:02:50 -0700 From: Terry Lambert Message-Id: <199510262102.OAA21640@phaeton.artisoft.com> Subject: Re: cpp question To: phk@critter.tfs.com (Poul-Henning Kamp) Date: Thu, 26 Oct 1995 14:02:50 -0700 (MST) Cc: hackers@FreeBSD.ORG In-Reply-To: <673.814700238@critter.tfs.com> from "Poul-Henning Kamp" at Oct 26, 95 10:37:18 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 464 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" ? #name Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.