home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l440 / 2.ddi / CHAP6 / SEND2E.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-09-27  |  598 b   |  21 lines

  1. /**********************************************************
  2.  *   Send2E.C - support for INT 2Eh                       *
  3.  *   Jim Kyle, July 1990                                  *
  4.  **********************************************************/
  5. #include <stdio.h>
  6. #include <string.h>
  7.  
  8. int have2e( void );                /* prototype */
  9. void do2e( char * cmdstr );        /* prototype */
  10.  
  11. int Send2E( char * command )
  12. { char temp[130];
  13.   int retval;
  14.  
  15.   if( retval = have2e() )
  16.     { sprintf( temp, "%c%s\r", strlen( command ), command );
  17.       do2e( temp );
  18.     }
  19.   return retval;
  20. }
  21.