Re: Strange pager (less, more) behavior
- From: Måns Rullgård <mru@xxxxxxxxxxxxx>
- Date: Wed, 29 Mar 2006 23:24:08 +0100
Kasper Dupont
<47741373198819964262@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> writes:
Another way of interpreting the word reopen in that context
would be to just make stdout again refer to an open file,
which you could write to using the usual stdio functions.
Whether that is possible I cannot tell you. I think freopen
might actually work in some implementations. But I wouldn't
rely on it.
I would. C99 says this:
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.
--
Måns Rullgård
mru@xxxxxxxxxxxxx
.
- References:
- Strange pager (less, more) behavior
- From: Dave Ulrick
- Re: Strange pager (less, more) behavior
- From: Måns Rullgård
- Re: Strange pager (less, more) behavior
- From: Dave Ulrick
- Strange pager (less, more) behavior
- Prev by Date: Re: Strange pager (less, more) behavior
- Next by Date: Re: Strange pager (less, more) behavior
- Previous by thread: Re: Strange pager (less, more) behavior
- Next by thread: Re: Strange pager (less, more) behavior
- Index(es):
Relevant Pages
|
|