can anyone tell me how to make those functions (scanf and printf) for my own kernel, since those in stdio.h can't be used when linking?
can anyone send me the code for those functions that works?
thanks.
ivan
printf & scanf
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:printf & scanf
hey, dude.
if you're expecting a vanillia printf/scanf to work in your OS environment by just drag'n'dropping, you'll be disappointed.
Even if i have scanf(), it couldn't work without hooking keyboard interrupt, and this will be specific to your OS.
However, you could try something like OSLIB which may contain it, or tiny libc in g00gle (no time to search right now, i have to go) ...
if you're expecting a vanillia printf/scanf to work in your OS environment by just drag'n'dropping, you'll be disappointed.
Even if i have scanf(), it couldn't work without hooking keyboard interrupt, and this will be specific to your OS.
However, you could try something like OSLIB which may contain it, or tiny libc in g00gle (no time to search right now, i have to go) ...
Re:printf & scanf
I've ported the DJGPP (its GNU) printf to my os.
it works well and it looks like this printf has all the standard fields/flags/.... etc
hefeteig
it works well and it looks like this printf has all the standard fields/flags/.... etc
hefeteig
Re:printf & scanf
can you please send me that port?
btw. did you or anyone else by any chance port the scanf function or some similar? i really need it.
ivan
btw. did you or anyone else by any chance port the scanf function or some similar? i really need it.
ivan
Re:printf & scanf
tell me an email address and i'll do.
in theory you just have to write a k_putchar() function which is specific to my OS and it "should" work.
in theory you just have to write a k_putchar() function which is specific to my OS and it "should" work.