home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / SOFTWARE / LIBS / PMC101.ZIP / LIBSRC.ZIP / DPUTSTR.C (.txt) < prev    next >
C/C++ Source or Header  |  1994-06-25  |  436b  |  29 lines

  1. #include "pmc.h"
  2.  
  3. long __pascal dosputstr (STR str)
  4. {
  5.   REGSTRUCT rs;
  6.   int r;
  7.  
  8.   rs.w.FLAGS = rs.d.SSSP = 0;
  9.   rs.b.AH = 9;
  10.  
  11.   if (((DWORD)str + database) > 0xfffff)
  12.   {
  13.     strcpy (_lowbufptr, str);
  14.     str = _lowbufptr;
  15.   }
  16.  
  17.   rs.w.DS = (DWORD)str + database >> 4;
  18.   rs.w.DX = (DWORD)str + database & 15;
  19.  
  20.   *(str = strchr (str, 0)) = '$';
  21.  
  22.   r = xlt_simrmint (0x21, &rs, 0);
  23.  
  24.   *str = 0;
  25.  
  26.   return r;
  27. }
  28.  
  29.