Path: utzoo!mnetor!uunet!husc6!purdue!i.cc.purdue.edu!j.cc.purdue.edu!ksb From: ksb@j.cc.purdue.edu (Kevin Braunsdorf) Newsgroups: comp.lang.c Subject: common errors in C text Message-ID: <6867@j.cc.purdue.edu> Date: 6 Apr 88 22:27:37 GMT References: <891@micomvax.UUCP> <48100001@lan000> Reply-To: ksb@j.cc.purdue.edu.UUCP (Kevin Braunsdorf) Followup-To: comp.lang.c Distribution: na Organization: K Project Lines: 16 Keywords: common C errors Summary: *other* errors, please I have heard many net.folk out there talk about how many times the compare vs assignment in a conditional has bitten them; what I'd like to ask of you now is "What *other* common errors do you make/see?" One I see: .... if (someconst == somefunc()); statement(); .... [ the ';' on the end of the if statement ] Please send mail to "pur-ee!ksb" or "ksb@j.cc.purdue.edu" and I will post a summary. [ Other languages are OK, if you'd like. ] kayessbee