Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!gatech!udel!mmdf From: jnall%FSU.BITNET@cunyvm.cuny.edu (John Nall 904-644-5241) Newsgroups: comp.os.minix Subject: /usr/minix/amoeba/examples/client3.c Message-ID: <11077@louie.udel.EDU> Date: 17 Mar 89 13:46:18 GMT Sender: mmdf@udel.EDU Lines: 15 I'm teaching a course in local networking this semester, using Andy's Second Edition networking book. Some of the students are having to learn C as they go, and I suggested the Kernighan and Ritchie "bible" as the best self-teaching text I know of. Therefore, I thought it was amusing that one of my students (a foreign student, actually, with a real language gap) who is just learning C pointed out to me that Andy's sample remote file client program, client3.c, does not work because the main routine has a read statement which is of the form "if ((n=read(fd,buf,bytes) < 0))" and, as stated on page 15 of K&R, this always sets n to 0 or 1, rather than the number of bytes read. John Nall Florida State University