Mail Archives: djgpp/2001/07/19/15:39:55
> >#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;
> >}
>
> but the code is longer and more complicated (for me) .
The lines that have __crt0 in them exist *only* to reduce the size of
the final executable (the FAQ tells you all about this). A shorter
source that produces a larger executable would be:
#include <pc.h>
#include <conio.h>
int main()
{
ScreenPutChar('\001', WHITE, ScreenCols()/2, ScreenRows()/2);
return 0;
}
- Raw text -