Hi I wonder if it is possible the get the source code for the function "strstr.c" I need to modify it to call my watchdog. /ingvar
Keil's source code (which you're probably not going to get ahold of) is not likely to be a whole lot different than any other strstr() implementation. Ask Google to find "strstr.c", select one of the many returned implementations and modify to suit your needs.
Send email to support.intl@keil.com and we will send you the source code of strstr.
Hi Is it possible to get the source code of printf too ? I want to modify it to add a new parameter wich indicates the printer device among other modifications. Regards Viktor Gottschald
"Is it possible to get the source code of printf too ?" See: http://www.keil.com/forum/docs/thread5382.asp "I want to modify it to add a new parameter wich indicates the printer device " This has been discussed before - try a search. It might be easier to write your own function that does the "extras," and use sprintf to do the formatting?
Examine the parameters for fprintf() and imagine how you could create a similar function that would allow you to specify a printer device instead of a stream. Hint: you might want to take a look at vprintf(), vsprintf(), and putchar() as possible components of your new function.
Hi Andrew, Supose you want to write to a device that is not ready, like a printer. It would be great to have an abort/retry mechanism otherwise the microcontroller get stuck untill the printer is ready. I tried to do something in putchar but it seems to be dificult to abort from putchar because it is called from printf. Any idea ? Regards Viktor
Hi Dan, Thank you for your message. See my last message to Andrew
View all questions in Keil forum