delorie.com/archives/browse.cgi | search |
From: | sandmann AT clio DOT rice DOT edu (Charles Sandmann) |
Message-Id: | <10108200508.AA15103@clio.rice.edu> |
Subject: | Re: Fseek on STDIN problem on Win 2K |
To: | acottrel AT ihug DOT com DOT au (Andrew Cottrell) |
Date: | Mon, 20 Aug 2001 00:08:42 -0500 (CDT) |
Cc: | djgpp-workers AT delorie DOT com |
In-Reply-To: | <001301c128b2$21beb2c0$0a02a8c0@acceleron> from "Andrew Cottrell" at Aug 19, 2001 11:23:21 PM |
X-Mailer: | ELM [version 2.5 PL2] |
Mime-Version: | 1.0 |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
Minimal test that shows problem below. If lfn=n it works. Time for disecting fstat again. #include <stdio.h> #include <sys/stat.h> /* TEST FILE IS 123456789ABCDEF */ int main (void) { int c; struct stat st; if (fstat (0, &st) != 0) return printf("Error fstat"); _read(0,&c,1); printf("First char is: (%c)\n", c); return(0); }
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |