delorie.com/archives/browse.cgi | search |
From: | Alain Magloire <alainm AT rcsm DOT ece DOT mcgill DOT ca> |
Message-Id: | <199910241843.OAA27516@mccoy2.ECE.McGill.CA> |
Subject: | Re: Bug in fsetpos()? |
To: | eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) |
Date: | Sun, 24 Oct 1999 14:43:17 -0400 (EDT) |
Cc: | djgpp-workers AT delorie DOT com |
In-Reply-To: | <Pine.SUN.3.91.991024093353.29385M-100000@is> from "Eli Zaretskii" at Oct 24, 99 09:34:20 am |
X-Mailer: | ELM [version 2.4 PL25] |
MIME-Version: | 1.0 |
Reply-To: | djgpp-workers AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
Bonjour M. Eli Zaretskii > On Thu, 21 Oct 1999, Alain Magloire wrote: > > > I don't think this is a bug, fsetpos() returns 0 if it succeeds otherwise > > it returns a non-zero value and sets errno to indicate the error. > > Right. But if fseek returns -1, that surely counts as a failure, > right? So ignoring the return value of fseek *is* a bug, since that > makes fsetpos return zero when in fact it failed. > Yes, apologies to Richard for not reading is post correctly. -- au revoir, alain ---- Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |