traceonoff.c
来自「操作系统SunOS 4.1.3版本的源码」· C语言 代码 · 共 31 行
C
31 行
#ifndef lintstatic char sccsid[] = "@(#)traceonoff.c 1.1 92/07/30 SMI"; /* from S5R2 1.1 */#endif#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 + -
显示快捷键?