stdio.h

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1,532 Views
schakoma
Contributor I

Hello. I am trying to read and write integers to a file using the getw() and putw() using the stdio.h. However each time I use these functions I get an error: no reference to putw() or getw(). How can I add these functions to stdio.h or are there other functions I can use to write integers to files. I am using MCUXpresso v11

0 Kudos
Reply
1 Solution
1,521 Views
ErichStyger
Specialist I

Are you using a semihosting library? For example:

ErichStyger_0-1644309539973.png

Otherwise: I wrote recently about that topic here: https://mcuoneclipse.com/2022/01/25/semihosting-with-nxp-mcuxpresso-sdk-and-frdm-ke02z/

I hope this helps,

Erich

View solution in original post

0 Kudos
Reply
1 Reply
1,522 Views
ErichStyger
Specialist I

Are you using a semihosting library? For example:

ErichStyger_0-1644309539973.png

Otherwise: I wrote recently about that topic here: https://mcuoneclipse.com/2022/01/25/semihosting-with-nxp-mcuxpresso-sdk-and-frdm-ke02z/

I hope this helps,

Erich

0 Kudos
Reply