Article View: comp.os.msdos.programmer
Article #257Re: Bug in Borland C++ 2.0 stat() ?
From: Jan-Pieter Cornet
Date: Thu, 06 Aug 1992 11:09
Date: Thu, 06 Aug 1992 11:09
24 lines
1512 bytes
1512 bytes
mark@snark.itc.gu.edu.au (Mark Hessling) writes: >Based on the following comparison of the output of the following program >compiled with Borland C++ 2.0 and Microsoft C 6.00, it seems that there >is a bug in the Borland stat() function whenever the root directory is >referenced. >Can anyone with Borland C++ 3.0/3.1 test to see if the behavior of stat.c >has changed from version 2.00 ? Yes, it did. BC++ 3.0 displays the correct results for me. [program to test the stat() function removed, results removed too] What might've hit you is the fact that \ is the string-escape character in C. It might be that when using the forward slash / as the path separator, the BC++ 2.0 stat() function will function as expected. I don't know why BC++ 2.0 behaves erratic with that \, because the string escape is normally a compile-time issue. -- Jan-Pieter cornet@duteca.et.tudelft.nl
Technical Details
Message-ID:
<1992Aug06.110932.19953@donau.et.tudelft.nl>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!donau!zen!cornetReferences:
<mark.713014155@snark>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!donau!zen!cornet From: cornet@zen.et.tudelft.nl (Jan-Pieter Cornet) Subject: Re: Bug in Borland C++ 2.0 stat() ? Message-ID: <1992Aug06.110932.19953@donau.et.tudelft.nl> Originator: cornet@zen.et.tudelft.nl Sender: news@donau.et.tudelft.nl (UseNet News System) Nntp-Posting-Host: zen.et.tudelft.nl Reply-To: cornet@zen.et.tudelft.nl (Jan-Pieter Cornet) Organization: Delft University of Technology, Dept. of Electrical Engineering References: <mark.713014155@snark> Date: Thu, 06 Aug 1992 11:09:32 GMT Lines: 24