Path: utzoo!mnetor!uunet!steinmetz!davidsen From: davidsen@steinmetz.ge.com (William E. Davidsen Jr) Newsgroups: comp.lang.c Subject: Re: a couple of random questions Message-ID: <10426@steinmetz.ge.com> Date: 14 Apr 88 16:05:52 GMT References: <530@vsi.UUCP> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Distribution: comp Organization: General Electric CRD, Schenectady, NY Lines: 26 In article <530@vsi.UUCP> friedl@vsi.UUCP (Stephen J. Friedl) writes: | [...] | Two random questions. First, the word "entry" used to be a | reserved keyword in C but appears to never have been used. Does | anybody know the direction it might have taken had its use been | implemented? The FORTRAN version gave another name which could be called, like another subroutine declaration. I think I used it once, just to see how it worked. | Second, what is the portable way to rewind a Unix file | descriptor? On almost every machine I have ever used: | | lseek(fd, (off_t)0, SEEK_SET); | Any implementation which doesn't use lseek(int, long, int) In the K&R manner (pg 164) will break virtually every program which uses the feature. I have to check dpANS on this, or someone can post and tell me that they found some way to justify doing something else. -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs | seismo}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me