home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / c / pcw_c.zip / INT29DMO.C < prev    next >
C/C++ Source or Header  |  1991-12-05  |  621b  |  30 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include "pcwproto.h"
  4.  
  5. int set_int29(void);
  6. void reset_int29(void);
  7.  
  8. #define  rnd(x) (rand() % (x))
  9. void main(void) {
  10.  
  11.    WNDPTR *wnd;
  12.    int mxr, mxc, i;
  13.  
  14. /* Create a box with a advertisment for the C language */
  15.  
  16.    chk_video_state(&mxr,&mxc);
  17.    bordercolor(YELLOW,BLUE);
  18.    wnd = wframe(5,10,20,70,LIGHTGRAY,BLUE);
  19.    set_int29();
  20.    for (i = 0; i < 100; i++)
  21.           printf("Hello World!");
  22.    system("dir");
  23.    system("c:\csource\qwrite.exe");
  24.    printf("That's all folks.  Great is it not?!");
  25.    keywait(5);
  26.    reset_int29();
  27.    wpop(wnd);
  28. }
  29.  
  30.