traceonoff.c
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· C语言 代码 · 共 31 行
C
31 行
#ifdef lintstatic char *sccsid = "@(#)traceonoff.c 4.1 (ULTRIX) 7/2/90";#endif lint#include "curses.ext"traceon(){#ifdef DEBUG if (outf == NULL) { outf = fopen("trace", "a"); if (outf == NULL) { perror("trace"); exit(-1); } fprintf(outf, "trace turned on\n"); }#endif}traceoff(){#ifdef DEBUG if (outf != NULL) { fprintf(outf, "trace turned off\n"); fclose(outf); outf = NULL; }#endif}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?