> typedef enum {
>     CODE_BLUE,
>     CODE_RED
> } Code;
>
> extern Code condition;
> void check_condition() {
>     if (condition = CODE_RED) {
>       launch_missiles();
>     }
> }

:-)

I may have to go dust off my copy of _C Traps and Pitfalls_ by Andrew Koenig, a 
volume I heartily recommend to anyone.  (I still miss the Computer Literacy 
Bookstore in San Jose, without which I would never have discovered half the 
cool 
shit I did.  Cue argument about e-books here. :-)
_______________________________________________
Tech mailing list
[email protected]
http://lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to