Welcome, Guest. Please login or register.

Author Topic: Probably very basic C question...  (Read 2108 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline thorrin

  • Newbie
  • *
  • Join Date: Jun 2003
  • Posts: 46
    • Show all replies
    • http://thorrin.hopto.org
Re: Probably very basic C question...
« on: May 25, 2004, 10:04:50 PM »
My guess would be that if you did it your way, you would have something like this:

if (Libbase) {  //start code here
...             //5000 lines later
}
else { exit }

Its easier to read if you do the not case first...  Otherwise you have a whole program and then you have an else clause just sitting there and you are wondering what it belongs to.

But what you said is correct, you COULD reverse the order.  And yes, as explained in another message, the '!' is a NOT.  Its just checking for a null pointer.

-Thorrin
The best part about it was when I got paid...