📄 x_date.c,v
字号:
head 1.1;access;symbols;locks dls:1.1; strict;comment @ * @;1.1date 97.09.21.19.29.03; author dls; state Dist;branches;next ;desc@@1.1log@pre-3e code@text@/* x_date.c - x_date */#include <conf.h>#include <kernel.h>#include <sleep.h>#include <date.h>/*------------------------------------------------------------------------ * x_date - (command date) print the date and time *------------------------------------------------------------------------ */COMMAND x_date(stdin, stdout, stderr, nargs, args)int stdin, stdout, stderr, nargs;char *args[];{ long now; char str[80]; if (nargs == 2) clktime = 0L; gettime(&now); ascdate(now, str); strcat(str, "\n"); write(stdout, str, strlen(str)); return(OK);}@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -