Harold Hallikainen wrote: >> 2009/10/29 Harold Hallikainen : >> >>> Back to the original question, though... Does anyone know about >>> fprintf stream definition for C32? >> >> Try this FAQ: >> http://www.microchip.com/forums/tm.aspx?m=406660 >> > Thanks! I see redirecting printf in the FAQ, but not fprintf. Use of > fprintf with fopen is nice since I can define all my output devices > ahead of time then just send to the appropriate device instead of > having to redirect stdout all the time. Though the library > documentation includes fopen and fprintf, I see nothing on creating > additional output streams (like I did for the 24H). I'm not sure what exactly you want to do, or what your question is, but you can override every C library function with your own version. Just link it in, and the linker won't use the code from the library. (That's one of the advantages of a library-based implementation, as opposed to a compiler-based implementation, if you remember this discussion a while ago :) However, you need to provide every function that's needed and that's in one library source file. (Link modules are normally file-based.) That is, if you want to substitute C library functions, you need to substitute all functions that are in one C library source file. Which typically are not many. This works if the C compiler is ANSI C. Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist