How to check for a

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have a id field , sometimes it contains a bad ptr 0xcdcdcdcd. If I use strcmp on it my program breaks.
I want to set a if condition for it.

I tried
if (coord->id)
{
...............
...............
}

But still the control goes inside it when i have a bad ptr. How to prevent it?


<hr size="1" align="left" width="25% OM

View the full article
 
Back
Top