MCPcopy Index your code
hub / github.com/DaveGamble/cJSON / UnityPrintNumberUnsigned

Function UnityPrintNumberUnsigned

tests/unity/src/unity.c:191–207  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

189/*-----------------------------------------------
190 * basically do an itoa using as little ram as possible */
191void UnityPrintNumberUnsigned(const UNITY_UINT number)
192{
193 UNITY_UINT divisor = 1;
194
195 /* figure out initial divisor */
196 while (number / divisor > 9)
197 {
198 divisor *= 10;
199 }
200
201 /* now mod and print, then divide divisor */
202 do
203 {
204 UNITY_OUTPUT_CHAR((char)('0' + (number / divisor % 10)));
205 divisor /= 10;
206 } while (divisor > 0);
207}
208
209/*-----------------------------------------------*/
210void UnityPrintNumberHex(const UNITY_UINT number, const char nibbles_to_print)

Callers 8

UnityPrintNumberByStyleFunction · 0.85
UnityPrintNumberFunction · 0.85
UnityAssertEqualIntArrayFunction · 0.85
UnityAssertEqualMemoryFunction · 0.85
announceTestRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…