MCPcopy Index your code
hub / github.com/ThrowTheSwitch/Unity / UnityPrintNumberUnsigned

Function UnityPrintNumberUnsigned

src/unity.c:254–270  ·  view source on GitHub ↗

----------------------------------------------- * basically do an itoa using as little ram as possible */

Source from the content-addressed store, hash-verified

252/*-----------------------------------------------
253 * basically do an itoa using as little ram as possible */
254void UnityPrintNumberUnsigned(const UNITY_UINT number)
255{
256 UNITY_UINT divisor = 1;
257
258 /* figure out initial divisor */
259 while (number / divisor > 9)
260 {
261 divisor *= 10;
262 }
263
264 /* now mod and print, then divide divisor */
265 do
266 {
267 UNITY_OUTPUT_CHAR((char)('0' + (number / divisor % 10)));
268 divisor /= 10;
269 } while (divisor > 0);
270}
271
272/*-----------------------------------------------*/
273void UnityPrintNumberHex(const UNITY_UINT number, const char nibbles_to_print)

Callers 10

UnityPrintNumberByStyleFunction · 0.85
UnityPrintNumberFunction · 0.85
UnityAssertEqualIntArrayFunction · 0.85
UnityAssertEqualMemoryFunction · 0.85
unity.cFile · 0.85
announceTestRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected