src/stdlib/stdstrng.c
/*====================================================
 * make8char -- coerce input to 8-bit character range
 * This is to catch any errors passing signed characters
 *  as signed integers (which gets them sign-extended to the
 *  negative two billion range!)
 * Created: 2002/01/24 (Perry Rapp)
 *==================================================*/
- coerce input to 8-bit character range
This is to catch any errors passing signed characters
as signed integers (which gets them sign-extended to the
negative two billion range!)
Created: 2002/01/24 (Perry Rapp)
- coerce input to 8 - bit character range This is to catch any errors passing signed characters as signed integers ( which gets them sign - extended to the negative two billion range! ) Created : 2002 / 01 / 24 ( Perry Rapp )
int
make8char (int c)
{
	if (c<0 || c>255) {
		if (hardfail) {
			ASSERT(0);
		}
		c = 0;
	}
	return c;
}
int make8char ( int c ) { if ( c < 0 || c > 255 ) { if ( hardfail ) { ASSERT ( 0 ) ; } c = 0 ; } return c ; }
make8char -- coerce input to 8-bit character range
 This is to catch any errors passing signed characters
  as signed integers (which gets them sign-extended to the
  negative two billion range!)
make8char -- coerce input to 8 - bit character range This is to catch any errors passing signed characters as signed integers ( which gets them sign - extended to the negative two billion range! )