ctime.c
来自「标准c库代码,可以应用于各个系统提供了大量的基本函数」· C语言 代码 · 共 45 行
C
45 行
/* * ctime.c * Original Author: G. Haley *//*FUNCTION<<ctime>>---convert time to local and format as stringINDEX ctimeANSI_SYNOPSIS #include <time.h> char *ctime(time_t <[timp]>);TRAD_SYNOPSIS #include <time.h> char *ctime(<[timp]>) time_t <[timp]>;DESCRIPTIONConvert the time value at <[timp]> to local time (like <<localtime>>)and format it into a string of the form. Wed Jun 15 11:38:07 1988\n\0(like <<asctime>>).RETURNSA pointer to the string containing a formatted timestamp.PORTABILITYANSI C requires <<ctime>>.<<ctime>> requires no supporting OS subroutines.*/#include <time.h>char *_DEFUN (ctime, (tim_p), _CONST time_t * tim_p){ return asctime (localtime (tim_p));}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?