What is wrong with this statement?
I can't seem to figure out what is wrong with this statement. C keeps on crashing here.. someVar is a hexadecimal number stored as a string.


const char *someVar;
..
do some stuff
.
return ((uint32_t)strtol((char *)someVar, NULL, 0));

Thanks!

What is wrong with this statement?
===

I can't seem to figure out what is wrong with this statement. C keeps on crashing here.. someVar is a hexadecimal number stored as a string.


const char *someVar;
..
do some stuff
.
return ((uint32_t)strtol((char *)someVar, NULL, 0));

Thanks!
