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

Function UnityPrintAnsiEscapeString

src/unity.c:109–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107/* Local helper function to print ANSI escape strings e.g. "\033[42m". */
108#ifdef UNITY_OUTPUT_COLOR
109static UNITY_UINT UnityPrintAnsiEscapeString(const char* string)
110{
111 const char* pch = string;
112 UNITY_UINT count = 0;
113
114 while (*pch && (*pch != 'm'))
115 {
116 UNITY_OUTPUT_CHAR(*pch);
117 pch++;
118 count++;
119 }
120 UNITY_OUTPUT_CHAR('m');
121 count++;
122
123 return count;
124}
125#endif
126
127/*-----------------------------------------------*/

Callers 2

UnityPrintFunction · 0.85
unity.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected