delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/19/12:22:38

Date: Thu, 19 Jul 2001 12:22:29 -0400
Message-Id: <200107191622.MAA20718@envy.delorie.com>
X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT envy DOT delorie DOT com using -f
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
CC: Sterten AT aol DOT com
In-reply-to: <c.18b29f66.28885b90@aol.com> (Sterten@aol.com)
Subject: Re: pokeb peekb
References: <c DOT 18b29f66 DOT 28885b90 AT aol DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> if that is already a steep learning curve , then I wonder how many
> hours a newby is supposed to invest before he can use DJGPP !?!

If you're new to the C language itself, you should learn basic C first
(like main and printf), then worry about pc-specific things.

> here is my final version, it compiles to about 90KBytes.

This one is 26k and far safer:

#include <pc.h>
#include <conio.h>
#include <crt0.h>

char **__crt0_glob_function (char *arg) { return 0; }
void   __crt0_load_environment_file (char *progname) { }
void   __crt0_setup_arguments (void) { }

int main()
{
  ScreenPutChar('\001', WHITE, ScreenCols()/2, ScreenRows()/2);
  return 0;
}

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019