1*40865Sbostic /*- 2*40865Sbostic * Copyright (c) 1979 The Regents of the University of California. 3*40865Sbostic * All rights reserved. 4*40865Sbostic * 5*40865Sbostic * %sccs.include.redist.c% 6*40865Sbostic */ 71642Smckusick 8*40865Sbostic #ifndef lint 9*40865Sbostic static char sccsid[] = "@(#)CHR.c 1.6 (Berkeley) 04/09/90"; 10*40865Sbostic #endif /* not lint */ 111642Smckusick 129136Smckusick char ECHR[] = "Argument to chr of %D is out of range\n"; 131642Smckusick 142997Smckusic char 151642Smckusick CHR(value) 169136Smckusick unsigned long value; 171642Smckusick { 189136Smckusick if (value > 127) { 199136Smckusick ERROR(ECHR, value); 201642Smckusick } 212997Smckusic return (char)value; 221642Smckusick } 23