home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / DJGPP2 / V2 / DJTST200.ZIP / tests / libc / crt0 / multispn.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-07  |  496 b   |  24 lines

  1. #include <stdio.h>
  2. #include <go32.h>
  3. #include <stdlib.h>
  4.  
  5. extern short __djgpp_ds_alias;
  6.  
  7. int
  8. main(int argc, char **argv)
  9. {
  10.   int i;
  11.   printf("%04lx : %04x %04x %04x %04x\n",
  12.      _go32_info_block.linear_address_of_transfer_buffer >> 4,
  13.      _my_cs(), _my_ds(), __djgpp_ds_alias, _go32_info_block.selector_for_linear_memory);
  14.   if (argc < 2)
  15.     return 0;
  16.   for (i=0; i<atoi(argv[1]); i++)
  17.   {
  18.     printf("[%02d] ", i);
  19.     fflush(stdout);
  20.     system(argv[0]);
  21.   }
  22.   return 0;
  23. }
  24.