Keil Logo Arm Logo

Discussion Forum

How to access the stdio library?

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Henk van Winkoop
Posted
1-Jun-2012 09:27 GMT
Toolset
ARM
New! How to access the stdio library?

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

Read-Only
Author
Henk van Winkoop
Posted
1-Jun-2012 11:29 GMT
Toolset
ARM
New! RE: How to access the stdio library?

Hi,

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.

Henk

Read-Only
Author
Hans-Bernhard Broeker
Posted
1-Jun-2012 21:39 GMT
Toolset
ARM
New! RE: How to access the stdio library?

I was mistaken as 'memset' is not part of the 'stdio' library but part of the 'string' library.

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.

Read-Only
Author
Henk van Winkoop
Posted
3-Jun-2012 11:09 GMT
Toolset
ARM
New! RE: How to access the stdio library?

thanks

Next Thread | Thread List | Previous Thread Start a Thread | Settings

arm-logo-small

Keil logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.