inet_daytimed.c

来自「&#61599 Douglas Comer」· C语言 代码 · 共 25 行

C
25
字号
/* inet_daytimed.c - main */#include <sys/types.h>#include <unistd.h>#include <stdlib.h>#include <string.h>/*------------------------------------------------------------------------ * main - inetd client for DAYTIME service *------------------------------------------------------------------------ */intmain(int argc, char *argv[]){        char    *pts;                   /* pointer to time string       */        time_t  now;                    /* current time                 */        char    *ctime();        (void) time(&now);        pts = ctime(&now);        (void) write(0, pts, strlen(pts));	exit(0);}

⌨️ 快捷键说明

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