Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Dealing with a large integer
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Walter Roberson, post: 2453364"] C89 does not have an prohibition against it in the description of freopen(); it might somewhere else, perhaps. But in this connection, the footnote is informative: 116. The primary use of the freopen function is to change the file associated with a standard text stream (stderr, stdin, or stdout), as those identifiers need not be modifiable lvalues to which the value returned by the fopen function may be assigned. I would interpret that as being supportive of changing the mode as well as the association, in that it talks about providing a mechanism to essentially assign new values to those predefined identifiers -- and if one *could* just write to those identifiers (if they were lvalues) then one could put in a stream of a different mode. Of course, my interpretation is not to be considered "proof" ;-) [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Dealing with a large integer
Top