From: abe-t <it...@us...> - 2005-06-24 08:45:21
|
Update of /cvsroot/naviserver/naviserver/win32/cgitest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19178/win32/cgitest Modified Files: main.c Log Message: Removed superflous CRs at end of lines. Index: main.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/win32/cgitest/main.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** main.c 16 Feb 2005 08:41:07 -0000 1.1.1.1 --- main.c 24 Jun 2005 08:45:09 -0000 1.2 *************** *** 1,30 **** ! #include <stdio.h> ! #include <stdlib.h> ! #include <string.h> ! ! int ! main(int argc, char **argv) ! { ! int i; ! char buf[8192]; ! ! if (strstr(argv[0], "nph-") != NULL) { ! printf("HTTP/1.0 200 OK\r\nServer: %s\r\n", argv[0]); ! } ! printf("Content-type: text/plain\r\n\r\n"); ! puts("\nArgs:"); ! for (i = 0; i < argc; ++i) { ! puts(argv[i]); ! } ! ! puts("\nEnvironment:"); ! for (i = 0; _environ[i] != NULL; ++i) { ! printf("%s\n", _environ[i]); ! } ! ! puts("\nContent:"); ! while ((i = fread(buf, 1, sizeof(buf), stdin)) > 0) { ! fwrite(buf, 1, i, stdout); ! } ! return 0; ! } \ No newline at end of file --- 1,30 ---- ! #include <stdio.h> ! #include <stdlib.h> ! #include <string.h> ! ! int ! main(int argc, char **argv) ! { ! int i; ! char buf[8192]; ! ! if (strstr(argv[0], "nph-") != NULL) { ! printf("HTTP/1.0 200 OK\r\nServer: %s\r\n", argv[0]); ! } ! printf("Content-type: text/plain\r\n\r\n"); ! puts("\nArgs:"); ! for (i = 0; i < argc; ++i) { ! puts(argv[i]); ! } ! ! puts("\nEnvironment:"); ! for (i = 0; _environ[i] != NULL; ++i) { ! printf("%s\n", _environ[i]); ! } ! ! puts("\nContent:"); ! while ((i = fread(buf, 1, sizeof(buf), stdin)) > 0) { ! fwrite(buf, 1, i, stdout); ! } ! return 0; ! } |