Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!aspect!dave From: dave@aspect.UUCP (Dave Corcoran) Newsgroups: comp.lang.c Subject: Re: Need help with quoting and the CPP Summary: an m4 solution Message-ID: <9816@aspect.UUCP> Date: 29 Apr 91 22:44:10 GMT References: <230@wimpy.nms.gdc.portal.com> Organization: Aspect Telecommunications, San Jose, Ca Lines: 17 In article <230@wimpy.nms.gdc.portal.com>, bergquis@nms.gdc.portal.com (Brett Bergquist) writes: > Is there any way to expand an argument to a macro and at the same time > surround it with quotes (making is a quoted string). So I've got this fetish for m4 solutions! --------------------------------8<-------------------------------- define(string,`QUOTE_ME') define(quote_,`"$1"') char *q=quote_(string) char *s=quote_(Hey there hi there ho there) --------------------------------8<-------------------------------- -- David Corcoran -@@ uunet!aspect!dave ~ In a society where anything goes eventually everything will.