155844Sbostic /*- 266362Sbostic * Copyright (c) 1992, 1993, 1994 Henry Spencer. 366362Sbostic * Copyright (c) 1992, 1993, 1994 461162Sbostic * The Regents of the University of California. All rights reserved. 555844Sbostic * 655844Sbostic * This code is derived from software contributed to Berkeley by 7*66406Sbostic * Henry Spencer. 855844Sbostic * 955844Sbostic * %sccs.include.redist.c% 1055844Sbostic * 11*66406Sbostic * @(#)cname.h 8.3 (Berkeley) 03/20/94 1255844Sbostic */ 1355844Sbostic 1455844Sbostic /* character-name table */ 1555844Sbostic static struct cname { 1655844Sbostic char *name; 1760201Sbostic char code; 1855844Sbostic } cnames[] = { 1955844Sbostic "NUL", '\0', 2055844Sbostic "SOH", '\001', 2155844Sbostic "STX", '\002', 2255844Sbostic "ETX", '\003', 2355844Sbostic "EOT", '\004', 2455844Sbostic "ENQ", '\005', 2555844Sbostic "ACK", '\006', 2655844Sbostic "BEL", '\007', 2755844Sbostic "alert", '\007', 2855844Sbostic "BS", '\010', 2955844Sbostic "backspace", '\b', 3055844Sbostic "HT", '\011', 3155844Sbostic "tab", '\t', 3255844Sbostic "LF", '\012', 3355844Sbostic "newline", '\n', 3455844Sbostic "VT", '\013', 3555844Sbostic "vertical-tab", '\v', 3655844Sbostic "FF", '\014', 3755844Sbostic "form-feed", '\f', 3855844Sbostic "CR", '\015', 3955844Sbostic "carriage-return", '\r', 4055844Sbostic "SO", '\016', 4155844Sbostic "SI", '\017', 4255844Sbostic "DLE", '\020', 4355844Sbostic "DC1", '\021', 4455844Sbostic "DC2", '\022', 4555844Sbostic "DC3", '\023', 4655844Sbostic "DC4", '\024', 4755844Sbostic "NAK", '\025', 4855844Sbostic "SYN", '\026', 4955844Sbostic "ETB", '\027', 5055844Sbostic "CAN", '\030', 5155844Sbostic "EM", '\031', 5255844Sbostic "SUB", '\032', 5355844Sbostic "ESC", '\033', 5455844Sbostic "IS4", '\034', 5555844Sbostic "FS", '\034', 5655844Sbostic "IS3", '\035', 5755844Sbostic "GS", '\035', 5855844Sbostic "IS2", '\036', 5955844Sbostic "RS", '\036', 6055844Sbostic "IS1", '\037', 6155844Sbostic "US", '\037', 6255844Sbostic "space", ' ', 6355844Sbostic "exclamation-mark", '!', 6455844Sbostic "quotation-mark", '"', 6555844Sbostic "number-sign", '#', 6655844Sbostic "dollar-sign", '$', 6755844Sbostic "percent-sign", '%', 6855844Sbostic "ampersand", '&', 6955844Sbostic "apostrophe", '\'', 7055844Sbostic "left-parenthesis", '(', 7155844Sbostic "right-parenthesis", ')', 7255844Sbostic "asterisk", '*', 7355844Sbostic "plus-sign", '+', 7455844Sbostic "comma", ',', 7555844Sbostic "hyphen", '-', 7655844Sbostic "hyphen-minus", '-', 7755844Sbostic "period", '.', 7855844Sbostic "full-stop", '.', 7955844Sbostic "slash", '/', 8055844Sbostic "solidus", '/', 8155844Sbostic "zero", '0', 8255844Sbostic "one", '1', 8355844Sbostic "two", '2', 8455844Sbostic "three", '3', 8555844Sbostic "four", '4', 8655844Sbostic "five", '5', 8755844Sbostic "six", '6', 8855844Sbostic "seven", '7', 8955844Sbostic "eight", '8', 9055844Sbostic "nine", '9', 9155844Sbostic "colon", ':', 9255844Sbostic "semicolon", ';', 9355844Sbostic "less-than-sign", '<', 9455844Sbostic "equals-sign", '=', 9555844Sbostic "greater-than-sign", '>', 9655844Sbostic "question-mark", '?', 9755844Sbostic "commercial-at", '@', 9855844Sbostic "left-square-bracket", '[', 9955844Sbostic "backslash", '\\', 10055844Sbostic "reverse-solidus", '\\', 10155844Sbostic "right-square-bracket", ']', 10255844Sbostic "circumflex", '^', 10355844Sbostic "circumflex-accent", '^', 10455844Sbostic "underscore", '_', 10555844Sbostic "low-line", '_', 10655844Sbostic "grave-accent", '`', 10755844Sbostic "left-brace", '{', 10855844Sbostic "left-curly-bracket", '{', 10955844Sbostic "vertical-line", '|', 11055844Sbostic "right-brace", '}', 11155844Sbostic "right-curly-bracket", '}', 11255844Sbostic "tilde", '~', 11355844Sbostic "DEL", '\177', 11455844Sbostic NULL, 0, 11555844Sbostic }; 116