send2e.c

来自「汇编源代码大全4」· C语言 代码 · 共 21 行

C
21
字号
/**********************************************************
 *   Send2E.C - support for INT 2Eh                       *
 *   Jim Kyle, July 1990                                  *
 **********************************************************/
#include <stdio.h>
#include <string.h>

int have2e( void );                /* prototype */
void do2e( char * cmdstr );        /* prototype */

int Send2E( char * command )
{ char temp[130];
  int retval;

  if( retval = have2e() )
    { sprintf( temp, "%c%s\r", strlen( command ), command );
      do2e( temp );
    }
  return retval;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?