gcc/gcc/pself5.c
Zack Weinberg 50e0211ea0 C89-compliant quines
From-SVN: r26768
1999-05-04 15:15:48 +00:00

6 lines
298 B
C

#include <stdio.h>
#define N '\n'
#define Q '\"'
#define B '\\'
int main(void){char*p="#include <stdio.h>%c#define N '%cn'%c#define Q '%c%c'%c#define B '%c%c'%cint main(void){char*p=%c%s%c;(void)printf(p,N,B,N,B,Q,N,B,B,N,Q,p,Q,N);return 0;}%c";(void)printf(p,N,B,N,B,Q,N,B,B,N,Q,p,Q,N);return 0;}