From: Vic Newsgroups: comp.os.msdos.djgpp Subject: Re: Writing an OS Date: Mon, 26 Apr 1999 16:41:09 -0400 Organization: Communications Accessibles Montreal, Quebec Canada Lines: 28 Message-ID: <3724CF65.74E@cam.org> References: <7fvlo1$o0k$1 AT newsserv DOT zdv DOT uni-tuebingen DOT de> <7g0ahp$1poi$1 AT newssvr04-int DOT news DOT prodigy DOT com> NNTP-Posting-Host: dialup-11.hip.cam.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0Gold (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Ken Robbins wrote: > > Arik Funke wrote: > > Hy, I'd like to programm an OS and to load it with GRUB-bootloader. I use > > DJGPP and RHIDE. good for you! > Programming an OS is a very difficult task. Are you sure you want to > take on this task? on the other hand, it can be fun! > > My question: > > 1. What is the minimum code to print a line to the screen? > > > > I've tried it like that: > > main () > > { > > printf("%10d",1999) > > } > > but it doesn't work. > > That is because you did not #include where the prototype for > printf(); is. The minimun code to print a line to the screen is below. barf. He's writing an OS. there IS NO printf! no libc, nothing! you want to print, make your own printf.