Hi Peter,
On 20/01/2005, you wrote:
If you have a file handle, can't you duplicate it with DupLock ?
Unfortunately, no. I wanted to minimise the effort and the easiest way would have been if there was a simple, compiler-portable way of creating a stdio FILE from a BPTR returned from Open().
Could you not just make an array of type FILE *[], indexed by the integer form of stdin/out/err? You would have to fill in the three values provided, and allow room for later additions.
cheers