"Rod Pemberton" <> writes:
> "Arun" <> wrote in message
> news: oups.com...
>> Hi,
>>
>> I thought that the memory address of DOS screen is 0x0b00.
>> But this didnt work for me.
>> Can anyone help in accessing the screen by using this address.
>>
>
> Sigh... yes. You didn't state compiler you use. This works for DJGPPv2.03
> and OWv1.3.
>
> #include <stdio.h>
> #include <stdlib.h>
> #ifdef __DJGPP__
> #include <sys/nearptr.h>
> #endif
[snip]
> exit(EXIT_SUCCESS);
> #ifdef __WATCOMC__
> return(0);
> #endif
> }
Can you *please* take this to a newsgroup where it's topical? Posting
this code in a forum that's lacking in DOS experts who can confirm
whether it's correct is not helpful to the original poster. In a
system-specific newsgroup, they might know better approaches for
whatever task the OP is trying to accomplish.
(Watcom C needs a "return(0);" *after* a call to
"exit(EXIT_SUCCESS);"???)
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.