[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fopen warning
From: |
John W. Eaton |
Subject: |
Re: fopen warning |
Date: |
Tue, 17 May 2005 14:06:45 -0400 |
On 17-May-2005, Dmitri A. Sergatskov wrote:
| Do you mean that:
|
| fid = fopen("file")
|
| would return structure, but
|
| fopen("file")
|
| would return just an integer?
I meant that both forms would return an integer (the file id number)
instead of the current stream object, which is a special kind of
structure with some odd properties. For example, it is automatically
converted to a number in some contexts, so that the object that is
returned by fopen appears to behave in a mostly compatible way, even
though it is not a simple number.
jwe