>> I'm presuming the compiler will compile this such that any one function >> returning a fail will immediately cause the function to return false >> without calling any further functions. Is this a reasonable assumption, >> and will it hold true for any (Ansi) C compiler? > > Yes, this your assumptions are correct, and this behaviour is required by > the ANSI standard. Microntroller C's tend to drift away from "full ansi compliance." Does anyone know for sure if any of the popular PIC C's WON'T handle the short-cutting of the boolean expression correctly? BillW -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads