Basically for part of my assignment, I have to write my own int to string. This is done, however the problem is I can only enter 6 digits to convert otherewise my program crashes. Out lecturer also wants us to use the abs function as the value passed in can be negative. When i use the abs fucntion, I can only enter 5 digits.
My function is defined as:
char *IntToStr(long Val, char *Str);
Val is the number passed in and *Str is what it is returned in.
I think it's something to do with memory but I'm not too sure.
Any help appreciated.