Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!sharkey!bnlux0!kushmer From: kushmer@bnlux0.bnl.gov (christopher kushmerick) Newsgroups: comp.sys.amiga Subject: program question, stdin, stdout. Message-ID: <2033@bnlux0.bnl.gov> Date: 28 Jul 90 03:58:59 GMT Organization: Brookhaven National Lab Lines: 21 The following program use to be my standard first program on a new computer. But it does not seem to work on my 2000, when compiled under lattice 5.0x.. #include stdio.h main() { while ((c=getchar())!=EOF) putchar(c); } When I replace putchar with printf("%d\n",c) the program works as I woud expect, it prints out the ascii value of the character I hit. Any ideas why the above prog should not work? -- Chris Kushmerick kushmer@bnlux0.bnl.gov kushmerick@pofvax.sunysb.edu