⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 delay.c

📁 PocketCMD是与pocketconsole配合实用的命令行解释器(Shell)
💻 C
字号:
/* * DELAY.C - internal command. * * clone from 4nt delay command * * 30 Aug 1999 *     started - Paolo Pantaleo <paolopan@freemail.it> * * */#include "config.h"#ifdef INCLUDE_CMD_DELAY#include "cmd.h"INT CommandDelay (LPTSTR cmd, LPTSTR param){	DWORD val;	DWORD mul=1000;	if (_tcsncmp (param, _T("/?"), 2) == 0)	{		ConOutPuts(			_T("pause for n seconds or milliseconds")			_T(          "\n")			_T(         "DELAY [/m]n\n")			_T(      "\n")			_T(   "  /m          specifiy than n are milliseconds\n")			_T("              otherwise n are seconds"));		return 0;	}	if (*param==0)	{		error_req_param_missing ();		return 1;	}	if (_tcsnicmp(param,_T("/m"),2) == 0)	{		mul = 1;		param += 2;	}	val = _ttoi(param);	Sleep(val*mul);	return 0;}#endif /* INCLUDE_CMD_DELAY */

⌨️ 快捷键说明

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