C: Integer to String.
I'm (attempting) to make a very basic operating system, and am stuck.
puts() displays a string on the screen, putl() does the same thing, but with a '\n' at the end of the string.
The problem is that timer_ticks is an integer. So basicly it prints something like "Current System Ticks: =E<".
I need a function to convert intergers to strings, but the function needs to be written from scratch. Not using anything from an include file.
A function to convert back from string to integer would also be good
I'm (attempting) to make a very basic operating system, and am stuck.
Code:
puts("Current System Ticks: ");
putl(timer_ticks);
puts() displays a string on the screen, putl() does the same thing, but with a '\n' at the end of the string.
The problem is that timer_ticks is an integer. So basicly it prints something like "Current System Ticks: =E<".
I need a function to convert intergers to strings, but the function needs to be written from scratch. Not using anything from an include file.
A function to convert back from string to integer would also be good
Last edited:




