EDN Admin
Well-known member
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
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