cvs.gedasymbols.org/archives/browse.cgi | search |
From: | Ken Robbins <NOSPAM AT DON'T.SPAM.COM> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Writing an OS |
Date: | Sun, 25 Apr 1999 19:06:11 -0500 |
Organization: | Prodigy Communications Corp |
Lines: | 37 |
Message-ID: | <7g0ahp$1poi$1@newssvr04-int.news.prodigy.com> |
References: | <7fvlo1$o0k$1 AT newsserv DOT zdv DOT uni-tuebingen DOT de> |
NNTP-Posting-Host: | slip129-37-196-87.il.us.ibm.net |
Mime-Version: | 1.0 |
X-Trace: | newssvr04-int.news.prodigy.com 925085049 1632162 129.37.196.87 (26 Apr 1999 00:04:09 GMT) |
X-Complaints-To: | abuse AT prodigy DOT net |
NNTP-Posting-Date: | 26 Apr 1999 00:04:09 GMT |
X-Accept-Language: | en |
X-Mailer: | Mozilla 4.5 [en] (Win95; I) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Arik Funke wrote: > Hy, I'd like to programm an OS and to load it with GRUB-bootloader. I use > DJGPP and RHIDE. Programming an OS is a very difficult task. Are you sure you want to take on this task? > 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 <stdio.h> where the prototype for printf(); is. The minimun code to print a line to the screen is below. #include <stdio.h> int main(void) { printf("Hello, world!\n"); return 0; } > [snip question 2] -- Ken Robbins puyrebel <AT> prodigy <DOT> net -- Ken Robbins puyrebel <AT> prodigy <DOT> net
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |