[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] Redirecting stdio using Fforce/Fdup



> anyone suggest some readable sources that use these calls,

-------------------------------cut-------------------------------
int handle, dup;

handle = Fcreate ("TMPFILE", 0 );

dup = Fdup (1);       /* Copie from stdout */
Fforce (1, handle);		/* redirect/unlink */

/* ... do something */

Fclose (handle);
Fforce (1,dup);
-------------------------------cut-------------------------------

Gerhard