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

📄 signon.c

📁 一个c语言写做的编译器的源码
💻 C
字号:
/*@A (C) 1992 Allen I. Holub                                                */
#include <stdio.h>
#include <tools/debug.h>
#include <tools/hash.h>
#include <tools/set.h>
#include "parser.h"
#include "../version.h"

#if ( 0 UNIX(+1) )
#include "date.h"	/* Otherwise use ANSI __DATE__ */
#endif

PUBLIC void signon()
{
    /* Print the sign-on message. Note that since the console is opened
     * explicitly, the message is printed even if both stdout and stderr are
     * redirected.
     */

    FILE *screen;
    if( !(screen = fopen( UNIX("/dev/tty") MS("con:"), "w")) )
	  screen = stderr;

    fprintf(screen,"%s %s (c) %s, Allen I. Holub. All rights reserved.\n",
				LL("LLAMA") OX("OCCS"), VERSION, __DATE__);
    if( screen != stderr )
	fclose(screen);
}

⌨️ 快捷键说明

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