scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

0153-cpp-string.c (236B)


      1 #define M1(x) "This is a string $ or # or ## " ## #x
      2 #define STR "This is a string $ or # or ## and it is ok!"
      3 
      4 int
      5 main(void)
      6 {
      7         char *s, *t = M1(and it is ok!);
      8 
      9 	for (s = STR; *s && *s == *t; ++s)
     10 		++t;
     11 
     12         return *s;
     13 }