Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site whuxle.UUCP Path: utzoo!linus!decvax!harpo!ihnp4!whuxle!nrf From: nrf@whuxle.UUCP Newsgroups: net.sources Subject: Re: modified clock.c (BSD & System V ver - (nf) Message-ID: <247@whuxle.UUCP> Date: Sat, 18-Feb-84 13:03:31 EST Article-I.D.: whuxle.247 Posted: Sat Feb 18 13:03:31 1984 Date-Received: Sun, 19-Feb-84 05:40:25 EST Sender: nrf@whuxle.UUCP Organization: Bell Labs, Whippany Lines: 29 #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