C/C++

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
Home » Tech Support »» C/C++
  • Calling free() on an uninitialised pointer?

    13 answers - 315 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

    Hi,
    If I call free() with a uninitialised pointer, will the program
    state become undefined, or will free() return harmlessly?
    Incidentally, is there a way in Standard C to determine
    weather a pointer points to a valid block of allocated
    memory?
    Thanks for your time.

Re: Calling free() on an uninitialised pointer?


max 4000 letters.
Your nickname that display:
In order to stop the spam: 9 + 8 =
SPONSORED
QUESTION

SPONSORED
EMSDN