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

📄 lcltime.c

📁 cygwin, 著名的在win32下模拟unix操作系统的东东
💻 C
字号:
/* * localtime.c *//*FUNCTION<<localtime>>---convert time to local representationINDEX	localtimeANSI_SYNOPSIS	#include <time.h>	struct tm *localtime(time_t *<[clock]>);	struct tm *localtime_r(time_t *<[clock]>, struct tm *<[res]>);TRAD_SYNOPSIS	#include <time.h>	struct tm *localtime(<[clock]>)	time_t *<[clock]>;	struct tm *localtime(<[clock]>, <[res]>)	time_t *<[clock]>;	struct tm *<[res]>;DESCRIPTION<<localtime>> converts the time at <[clock]> into local time, thenconverts its representation from the arithmetic representation to thetraditional representation defined by <<struct tm>>.<<localtime>> constructs the traditional time representation in staticstorage; each call to <<gmtime>> or <<localtime>> will overwrite theinformation generated by previous calls to either function.<<mktime>> is the inverse of <<localtime>>.RETURNSA pointer to the traditional time representation (<<struct tm>>).PORTABILITYANSI C requires <<localtime>>.<<localtime>> requires no supporting OS subroutines.*/#include <time.h>#include <reent.h>#ifndef _REENT_ONLYstruct tm *_DEFUN (localtime, (tim_p),	_CONST time_t * tim_p){  _REENT_CHECK_TM(_REENT);  return localtime_r (tim_p, (struct tm *)_REENT_TM(_REENT));}#endif

⌨️ 快捷键说明

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