Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!nolan From: nolan@ucbvax.BERKELEY.EDU (Earl Nolan) Newsgroups: net.lang.c Subject: Wanted: C idioms. Message-ID: <12678@ucbvax.BERKELEY.EDU> Date: Wed, 26-Mar-86 03:44:52 EST Article-I.D.: ucbvax.12678 Posted: Wed Mar 26 03:44:52 1986 Date-Received: Thu, 27-Mar-86 01:29:24 EST Organization: University of California at Berkeley Lines: 13 Keywords: "Standard ways" I am (with about 20 other students) assisting a professor in developing a course to teach students C. We have decided that for part of the reader to provide some "standard idioms" and/or "clever" but not too obtuse ways of doing things. Example: while((c = getchar()) != EOF) do something; for reading in character input. If you have any idioms please e-mail. If there is sufficient interest, I will summarize to the net. thank you. -- Eight weeks and holding until... (freedom). [..!ucbvax!nolan] /* no comment */ [nolan@ucbarpa.berkeley.edu] earl nolan