home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snpd9707.zip / FORMAT.C < prev    next >
Text File  |  1997-07-05  |  841b  |  26 lines

  1. .I 0 1
  2. /* +++Date last modified: 05-Jul-1997 */
  3. .D 1 1
  4. .I 19 2
  5.  #if !defined(__SC__) || (__SC__ < 0x700)
  6.   #error FORMAT.C >> _fcalloc() not supported bt ZTC or SC ver. 6.xx
  7. .D 20 2
  8. .I 482 2
  9.       static unsigned char FAR boot_code[BLEN];
  10.       static unsigned char boot_code_default[] = {
  11. .D 483 1
  12. .I 502 1
  13.             0xcd, 0x19              /* 7c61 int 19h                 */
  14. .D 503 1
  15. .I 504 5
  16.     };
  17.     static char boot_text_default[] = {
  18.             "\r\nNon-System disk for DATA USE ONLY!"
  19.             "\r\nProduced by a Public Domain Disk Formater 1.0 ."
  20.             "\r\nSource code freely available."
  21. .D 505 3
  22. .I 511 3
  23.       _fmemcpy(&boot_code[0], boot_code_default, sizeof(boot_code_default));
  24.       _fmemcpy(&boot_code[sizeof(boot_code_default)], boot_text_default,
  25.                sizeof(boot_text_default));
  26.