itoa & ltoa
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
-
does itoa and ltoa work when the value is 0? for eg: long d = 0; // or int value char* stop; char* sResult; ltoa(d, sResult, 16); //this line generates error is the error due to the value of d being 0 or are there other reasons? Please help. Thanks!
You might want to alloc some memory for sResult before using it... - Anders Money talks, but all mine ever says is "Goodbye!"