Need to implement the following.
char *IntToStr(long Val, char *Str)
It can be written in C. You may use the system functions abs and labs from the standard library stdlib if you need them. You should not use any other functions.
Val is a long integer for conversion to a string
Str is the address of memory into which the string will be written.
The function returns the address of the caller's memory.
I think it as somthing to do with converting the integer into ASCII then to a string.
seems a simple problem but can't get my head round it!
0 · ·