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

📄 vms_unix_times.c

📁 这是一个做pdf阅读器的源代码文件,是大家学习阅读器资料的很好参考
💻 C
字号:
/* *	UNIX-style Time Functions * */#include <stdio.h>#include <signal.h>#include <time.h>#include "vms_unix_time.h"/* *	gettimeofday(2) - Returns the current time * *	NOTE: The timezone portion is useless on VMS. *	Even on UNIX, it is only provided for backwards *	compatibilty and is not guaranteed to be correct. */#if (__VMS_VER < 70000000)int gettimeofday(tv, tz)struct timeval  *tv;struct timezone *tz;{    timeb_t tmp_time;    ftime(&tmp_time);    if (tv != NULL)    {	tv->tv_sec  = tmp_time.time;	tv->tv_usec = tmp_time.millitm * 1000;    }    if (tz != NULL)    {	tz->tz_minuteswest = tmp_time.timezone;	tz->tz_dsttime = tmp_time.dstflag;    }    return (0);} /*** End gettimeofday() ***/#endif

⌨️ 快捷键说明

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