home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!utcsri!torn!nott!bnrgate!scrumpy!karim
- From: karim@bnrmtl.bnr.ca (Karim Younes)
- Subject: Preprocessor question
- Message-ID: <1993Jan25.161425.27962@bnrmtl.bnr.ca>
- Keywords: Preprocessor, string
- Organization: Bell-Northern Research Montreal, Canada.
- Date: Mon, 25 Jan 93 16:14:25 GMT
- Lines: 15
-
- I am trying to have a #defined variable recognized by the
- preprocessor inside a string. In other words, I want to
- do something like this:
-
- #define JUNK 50
- static char *junk = "JUNK ways to leave your lover."
-
- Now the preprocessor ignores JUNK, because it is inside the double
- quotes. Is there any way to get around this ? Please respond
- by e-mail or by followup, I will post a summary if needed. Thanks.
-
- --
- Karim "Kouki" Younes Bell-Northern Research
- karim@bnr.ca Montreal, Canada
-
-