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

📄 unixdate.c

📁 Vxworks的培训教程,大家分享下啊,
💻 C
字号:
/* unixDate.c - print the time & date */#include <time.h>#include <sys/types.h>int main (void)    {    time_t tloc;    char *pStr;    /* Get the system time in seconds since the EPOCH */    if ((tloc = time ((time_t *)0)) == (time_t)0)	{        printf ("time() failed\n");        exit (1);        }    /* Convert the system time to an ASCII string */    if ((pStr = ctime (&tloc)) == NULL)	{	printf ("ctime failed\n");        exit (1);        }    printf ("%s\n",pStr);    return (0);    }

⌨️ 快捷键说明

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