Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can anyone send me a link to... or help out with...

Status
Not open for further replies.

thunderclees

Programmer
Jun 17, 2003
3
US
Null Pointers?? I'm kinda sketchy on the concept and use of them. If anyone knows a link to an existing faq or something to that extent, I'd appreciate it!! Thanks
 
Null pointers .... hmm ... not really that much to say about that.

The address 0 is per definition not a valid address.

Thus if you have a function that is supposed to return an address it is the typical way the function tells the caller that something went wrong (like malloc does).
It's a 'disaster' if the caller doesn't check the pointer before use.

It's not very informative as to what the problem is, but the meaning is clear.


/JOlesen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top