Shortest integer to string algorithm
Posted on 2004-11-02
can anybody suggest , the shortest integer to string algorithm.i already have implemented this code.the integer is between 1 to 9999 and is unsigned.assembly code will do but i would be better off with c code and hey no library functions(itoa or sprintf).
back = buffer;
*(back+count) = i/divider + '0';
} while (i);
i need to make it more concise in terms of instructions in the memory.its purely a memory issue.thanking you all.