Name: Anonymous 2007-07-31 17:58 ID:hLhle83q
Anyone got a website which lists C programming challenges?
#include <stdio.h>
int main(int argc, char **argv) {
FILE *fp;
int c;
if(argv[0] == NULL) return -1; /* WAHCKY ! */
fp = fopen(argv[0], "r");
if(fp == NULL) return -1; /* WOOTZ */
while((c = getc(fp)) != EOF) putc(c, stdout);
fclose(fp);
return 0;