1#include <string.h> 2#include "defs.h" 3/* 4 * lookup_abbrev() is used for TX macros - is that 5 * something SUN-specific? 6 */ 7 8char *abbrev_list[] = { 9 "GSBG", "Getting Started ", 10 "SUBG", "Customizing SunOS", 11 "SHBG", "Basic Troubleshooting", 12 "SVBG", "SunView User's Guide", 13 "MMBG", "Mail and Messages", 14 "DMBG", "Doing More with SunOS", 15 "UNBG", "Using the Network", 16 "GDBG", "Games, Demos & Other Pursuits", 17 "CHANGE", "SunOS 4.1 Release Manual", 18 "INSTALL", "Installing SunOS 4.1", 19 "ADMIN", "System and Network Administration", 20 "SECUR", "Security Features Guide", 21 "PROM", "PROM User's Manual", 22 "DIAG", "Sun System Diagnostics", 23 "SUNDIAG", "Sundiag User's Guide", 24 "MANPAGES", "SunOS Reference Manual", 25 "REFMAN", "SunOS Reference Manual", 26 "SSI", "Sun System Introduction", 27 "SSO", "System Services Overview", 28 "TEXT", "Editing Text Files", 29 "DOCS", "Formatting Documents", 30 "TROFF", "Using <B>nroff</B> and <B>troff</B>", 31 "INDEX", "Global Index", 32 "CPG", "C Programmer's Guide", 33 "CREF", "C Reference Manual", 34 "ASSY", "Assembly Language Reference", 35 "PUL", "Programming Utilities and Libraries", 36 "DEBUG", "Debugging Tools", 37 "NETP", "Network Programming", 38 "DRIVER", "Writing Device Drivers", 39 "STREAMS", "STREAMS Programming", 40 "SBDK", "SBus Developer's Kit", 41 "WDDS", "Writing Device Drivers for the SBus", 42 "FPOINT", "Floating-Point Programmer's Guide", 43 "SVPG", "SunView 1 Programmer's Guide", 44 "SVSPG", "SunView 1 System Programmer's Guide", 45 "PIXRCT", "Pixrect Reference Manual", 46 "CGI", "SunCGI Reference Manual", 47 "CORE", "SunCore Reference Manual", 48 "4ASSY", "Sun-4 Assembly Language Reference", 49 "SARCH", "<FONT SIZE=\"-1\">SPARC</FONT> Architecture Manual", 50 "KR", "The C Programming Language", 51 0, 0 }; 52 53char *lookup_abbrev (char *s) 54{ 55 int i=0; 56 57 if (!s) 58 return ""; 59 while (abbrev_list[i] && strcmp(s, abbrev_list[i])) 60 i = i+2; 61 return abbrev_list[i] ? abbrev_list[i+1] : s; 62} 63