We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I'm using the STM32F103ZE uC with Keil uVision4 IDE and I need some functions like 'memset()' residing in some 'stdio.lib' library.
Now I don't find the stdio.lib file anywhere in the C:\Keil directory.
What do I need to know or what do I need to do to access the memset() function?
best regards,
Henk
let me answer myself (after having studied it).
The Keil RealView compiler has it's own set of standard libraries residing in directory "C:\Keil\ARM\RV31".
To use the library 'memset' function just include the corresponding header file by: #include <string.h>
I was mistaken as 'memset' is not part of the 'stdio' library but part of the 'string' library.
Thanks for listening.
You're still mistaken, because it is part of neither --- because none of them is, actually, a library. Those are just header files. The library whose interface these headers (among others) describe is the Standard C Library, which is defined as part of the C programming language itself, and thus is an integral part of every C compilation environment.
thanks