Standard C functions

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JiGi_284761
Level 4
Level 4
Welcome!

Where can I find standard C functions?? .h files??

   

At the moment Im looking for itoa() or dtostr() or something similar. 

   

 

   

I looked in cyLib.h and cyutils.h but no luck there.

   

Thanks

0 Likes
6 Replies
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

Look at stdlib.h, or probably stdio.h. There is a nice reference for C library function (even though not all are supported on PSoC): http://www.cplusplus.com/reference/clibrary/

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

This C-book has a chapter about libraries. publications.gbdirect.co.uk/c_book/

   

 

   

Bob

0 Likes
JiGi_284761
Level 4
Level 4
Welcome!

😄  You guys are funny...

   

Perhaps you misunderstood. I know the functions. Just cant seem to find them in Creator.

   

Any Ideas?

0 Likes
Anonymous
Not applicable

C:\Program Files\Creator3\PSoC Creator\3.0\PSoC Creator\import\gnu_cs\arm\4.7.3\arm-none-eabi\include

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

If you want to use them, just include the respective header file in your code. The link I have was just for reference, to look which function is provided by which library.

   

If you meant you want to look at the source code: I think this is not supplied with Creator, there its just a library file.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Creator uses GCC, so you will find part of the libraries at gnu. Since embeddeds need a bit more support there is a "newlib-nano"  for some of the function. AFAIK you get information about that lib ar ARM.

   

 

   

Bob

0 Likes