Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!sdrc!cinnet!eric From: eric@cinnet.com (Eric Bardes) Newsgroups: comp.lang.c Subject: Re: When do you use "if ( a = b )"? (was Re: Funny mistake) Summary: That funny mistake Message-ID: <1991Mar19.213242.13106@cinnet.com> Date: 19 Mar 91 21:32:42 GMT References: <8148@rsiatl.Dixie.Com> <15481@smoke.brl.mil> <65837@eerie.acsu.Buffalo.EDU> Organization: Cincinnati Network, Cinti. OH Lines: 12 A typical usage, though slightly more hidden, of ( a = b ) in a conditional expression would be this: char *a, *b; while (*a++ = *b++) /* empty */ ; This example copies from string b to string a include the null character. Note the while loop has no body. Eric