modified clock.c (BSD & System V ver - (nf)

nrf at whuxle.UUCP nrf at whuxle.UUCP
Sun Feb 19 04:03:31 AEST 1984


#R:ihuxu:-24300:whuxle:21600001:000:477
whuxle!nrf    Feb 18 13:03:00 1984

Those with 3Bs (and hopefully the author) will benefit from the following
tidbit:

Some machines, such as 3Bs, don't support signed chars.  so if you do the
following:

	char x;

	x=getchar();

	if( x == EOF ) {
		do something;
	}

x will NEVER == EOF on a such a machine. the net result is that in order
for clock to work on a 3b, one must do the following:

	/char in_char/s/char/int/


Neal Fildes, A.T.&T. - Bell Laboratories Whippany, NJ, U.S.A.
whuxlg!nrf / 201-386-6493

-- 
Neal Fildes, A.T.&T. - Bell Laboratories Whippany, NJ, U.S.A.
whuxlg!nrf / 201-386-6493



More information about the Comp.sources.unix mailing list