Just preserves the current read functions and replaces the current read functions with the default read funcs.
| 102 | // Just preserves the current read functions and replaces |
| 103 | // the current read functions with the default read funcs. |
| 104 | void ILAPIENTRY iPreserveWriteFuncs() |
| 105 | { |
| 106 | // Create backups |
| 107 | PutcProcCopy = PutcProc; |
| 108 | SeekWProcCopy = SeekWProc; |
| 109 | TellWProcCopy = TellWProc; |
| 110 | WriteProcCopy = WriteProc; |
| 111 | iopenwCopy = iopenw; |
| 112 | iclosewCopy = iclosew; |
| 113 | |
| 114 | // Set the standard procs to write |
| 115 | ilResetWrite(); |
| 116 | |
| 117 | return; |
| 118 | } |
| 119 | |
| 120 | |
| 121 | // Restores the read functions - must be used after iPreserveReadFuncs(). |
nothing calls this directly
no outgoing calls
no test coverage detected