scc

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

0153-cpp_string.c (241B)


      1 #define M1(x,y) "This is a string $ or # or ## " #x y
      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 }