I did some evidence with strtol () from the stdlib library because I had a program that always crashed and I found that it worked perfectly:
main(){ char linea[]="0x123456",**ap; int num; num=strtol(linea,ap,0); printf("%d\n%s",num,*ap); }
But when I added only a new ad no matter where it crashed, like this
main(){ char linea[]="0x123456",**ap; int num; num=strtol(linea,ap,0); printf("%d\n%s",num,*ap); int k; }
just adding that final "int k;" the program crashed when strtol () was executed, I canβt understand why. I do it on Code :: Blocks
source share