systemname.c
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· C语言 代码 · 共 35 行
C
35 行
#ifndef lintstatic char sccsid[] = "@(#)systemname.c 4.2 (Berkeley) 5/27/83";#endif not lint# include "trek.h"/*** RETRIEVE THE STARSYSTEM NAME**** Very straightforward, this routine just gets the starsystem** name. It returns zero if none in the specified quadrant** (which, by the way, is passed it).**** This routine knows all about such things as distressed** starsystems, etc.*/char *systemname(q1)struct quad *q1;{ register struct quad *q; register int i; q = q1; i = q->qsystemname; if (i & Q_DISTRESSED) i = Event[i & Q_SYSTEM].systemname; i &= Q_SYSTEM; if (i == 0) return (0); return (Systemname[i]);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?