"Ed" <ed*********@hotmail.comwrites:
Could you tell me what the equivalent of this perl code would be in C
please?
print EOT<<
I want
to print over
multiple lines in c
without doing lots of printfs
EOT
fputs ("I want\n"
"to print over\n"
"multiple lines in c\n"
"without doing lots of printfs\n",
stdout);
--
int main(void){char p[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv wxyz.\
\n",*q="kl BIcNBFr.NKEzjwCIxNJC";int i=sizeof p/2;char *strchr();int putchar(\
);while(*q){i+=strchr(p,*q++)-p;if(i>=(int)sizeof p)i-=sizeof p-1;putchar(p[i]\
);}return 0;}