Page 1 of 1

printf & scanf

Posted: Mon Jun 23, 2003 6:36 am
by Ivan
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

Re:printf & scanf

Posted: Mon Jun 23, 2003 10:00 am
by Pype.Clicker
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) ...

Re:printf & scanf

Posted: Mon Jun 23, 2003 1:16 pm
by hefeteig
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

Re:printf & scanf

Posted: Mon Jun 23, 2003 1:49 pm
by Ivan
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

Re:printf & scanf

Posted: Mon Jun 23, 2003 2:00 pm
by hefeteig
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.

Re:printf & scanf

Posted: Tue Jun 24, 2003 4:35 am
by Ivan
here is my mail: [email protected]
thanks.


ivan