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

📄 time.c

📁 NIST Handwriting OCR Testbed
💻 C
字号:
/*# proc: current_time - returns a string containing the current date on the# proc:                system.*//************************************************************//*         Routines:   Current_Time()                       *//*         Author:    Michael D. Garris                     *//*         Date:      6/04/90                               *//************************************************************/#include <stdio.h>#include <sys/types.h>#include <sys/time.h>#include <time.h>/************************************************************//* Current_Time() gets the time of day from the system and  *//* returns an ASCII date string without a newline char.     *//************************************************************/char *current_time(){   long tm;   char *dptr;   tm = time((long *)NULL);   dptr = (char *)ctime(&tm);   *(dptr + strlen(dptr) - 1) = '\0';   return(dptr);}

⌨️ 快捷键说明

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