STDIO - fread() and file I/O test

Gary Thomas gary@mlbassoc.com
Thu Mar 6 22:15:00 GMT 2003


On Thu, 2003-03-06 at 15:10, Jonathan Larmour wrote:
> Gary Thomas wrote:
> > +
> > +#define NUM_TEST_LINES 100
> > +#define TEST_DIR "/"
> > +#define TEST_FILE "test.file"
> [snip]
> > +
> > +    fp = fopen("TEST_FILE", "w");
> 
> Just noticed.... this won't work quite as you expected, although it's 
> entirely benign. You can just fix it (and its friends further down) with 
> no need for ChangeLog IMHO - just a typo in the immediately previous change.

Interestingly, it does run :-)  It probably creates a file named
"/\"test.file\"" :-)  I'll fix it.

-- 
------------------------------------------------------------
Gary Thomas                 |
MLB Associates              |  Consulting for the
+1 (970) 229-1963           |    Embedded world
http://www.mlbassoc.com/    |
email: <gary@mlbassoc.com>  |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------



More information about the Ecos-patches mailing list