This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: STDIO - fread() and file I/O test


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 at mlbassoc dot com>  |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]