home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / TC-OS2.ZIP / MAIN-OS2.C < prev    next >
Text File  |  1988-05-24  |  419b  |  20 lines

  1. /*        MAIN.C
  2.  
  3.         Alternate, standalone main() file.  Demonstrates
  4.         linking to the startup code without having to link
  5.         to any of the Turbo C library routines.
  6.  
  7. */
  8.  
  9. void exit(int c)
  10. { _exit(c);}
  11.  
  12. int pascal DosWrite(int handle, char *s, int l, int *bw);
  13.  
  14. main(int argc,char **argv)
  15. {
  16. int BytesWritten;
  17.         DosWrite(1,"Hello, world!\n",14,&BytesWritten);
  18.         exit(0);
  19. }
  20.