ctime_r.c

来自「linux下用PCMCIA无线网卡虚拟无线AP的程序源码」· C语言 代码 · 共 27 行

C
27
字号
#include <time.h>#include <sys/time.h>extern void __tm_conv();extern void __asctime();char *ctime_r(timep, buf)__const time_t *timep;char *buf;{	struct tm tmb;	struct timezone tz;	time_t offt;	gettimeofday((void *) 0, &tz);	offt = -tz.tz_minuteswest * 60L;	/* tmb.tm_isdst = ? */	__tm_conv(&tmb, timep, offt);	__asctime(buf, &tmb);	return buf;}

⌨️ 快捷键说明

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