Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Oct 1995 14:02:50 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        phk@critter.tfs.com (Poul-Henning Kamp)
Cc:        hackers@FreeBSD.ORG
Subject:   Re: cpp question
Message-ID:  <199510262102.OAA21640@phaeton.artisoft.com>
In-Reply-To: <673.814700238@critter.tfs.com> from "Poul-Henning Kamp" at Oct 26, 95 10:37:18 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510262102.OAA21640>