This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

From Where Is sprintf Being Loaded?

Hello,

I am successfully using the following code:

float f = 23.50
char buffer[10];
sprintf(buffer, "Float = %f\n", f);
SEGGER_RTT_WriteString(0, buffer);

I have two questions:

  1. From where is the sprint function being loaded? My project is a copy of one of the ble_peripheral examples. I am building and loading to the pca10028 with Keil uVision 5. I have poked around looking for a linker library include but have not spotted it (I'm still relatively new to uVision)

  2. What header file can I include in order to silence the warning: #223-D: function sprint declared implicitly

Thank you.

Related