Topic : Pure C Library Documentation Author : John Kormylo Version : LIB.HYP 1.0 Subject : Documentation/Pure C Library Nodes : 1309 Index Size : 32068 HCP-Version : 3 Compiled on : Atari @charset : atarist @lang : en @default : @help : Help @options : +g -i -s +x +z -t4 @width : 75 View Ref-File[ Redirection Address Table ] extern void* _RedirTab[6]; The redirection table is neither initialized by PCSTART, nor is it used by any library function. However, PCSTART contains a pointer to it two bytes into the TEXT segment of the program, making it easy to locate by another process. One can use this feature to redirect I/O of an child process as follows: 1) Load the child process into RAM using Pexec(). 2) Insert jump vectors from the current process into the _RedirTab of the child process. 3) When the child process executes, it must look into _RedirTab for these jump vectors and execute them instead of using putc() etc. This is how PCC.TTP etc. are able to write into the message window of Pure C instead of to the VT52 emulator.