home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20170 < prev    next >
Encoding:
Text File  |  1993-01-25  |  871 b   |  26 lines

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