Subj : Re: reentrant fwrite/fputc/etc ? To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Fri Nov 14 2003 01:14 pm No function which makes a call to DOS is stable for use in an ISR unless specific, non-trivial efforts are made within the ISR itself to arrange for the DOS call to work. All of the FILE* I/O functions and most if not all of the other file I/O functions (including the ones which write as a file to stdout or stderr) use DOS calls. If you need to do that I suggest that you get a book such as "Undocumented DOS" and use the INDOS flag, an ISR reentrancy flag and stack switching to arrange that it works. .. Ed > gary wrote in message > news:3FB517F7.2040506@cordelli.net... > > this is why you need to be careful what C lib functions you > call inside an ISR. .