In reply to jaysipani:
In reply to sbellock:
Hi sbellock,
Thank you for explaining the implementation of atoi(). I tried to run this code on EDA Playground using both VCS as well as Incisive simulators, but still I got the same outputs. I am still not able to figure out why that particular string (i.e zincronium) is showing the output ‘z’.
I just copy and pasted your code into EDA Playground and I get
a2i[1]| zincronium : 0
a2i[2]| Red : 0
on the Big S and Big C simulators, which is correct.