Mail Archives: djgpp/2001/07/19/12:22:38
> 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 -