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

📄 sysdep.c

📁 ACE自适配通信环境(ADAPTIVE Communication Environment)是可以自由使用、开放源码的面向对象(OO)框架(Framework)
💻 C
字号:
/* sysdep.c,v 1.2 2000/06/04 22:00:03 brunsch Exp *//************************************************************************** *									  * * 		 Copyright (C) 1995 Silicon Graphics, Inc.		  * *									  * *  These coded instructions, statements, and computer programs were	  * *  developed by SGI for public use.  If any changes are made to this code* *  please try to get the changes back to the author.  Feel free to make  * *  modifications and changes to the code and release it.		  * *									  * **************************************************************************/#include "sysdep.h"/* strerror() */#ifndef HAVE_STRERROR/* strerror is not available on SunOS 4.1.3 and others */extern int sys_nerr;extern char *sys_errlist[];extern int errno;char *strerror(int errnum){     if (errnum<sys_nerr)    {	return(sys_errlist[errnum]);    }    return(NULL);}#endif /* strerror() *//* stub routines for NT */ #ifdef WIN32#include <winsock.h>#include <process.h>int getpid(void) {    return GetCurrentThreadId();}void sleep(int sec) {    Sleep(sec*1000);}#endif /* WIN32 */

⌨️ 快捷键说明

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