MCPcopy Create free account
hub / github.com/cpputest/cpputest / CL2000Putchar

Function CL2000Putchar

src/Platforms/C2000/UtestPlatform.cpp:152–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150void (*PlatformSpecificFClose)(PlatformSpecificFile file) = C2000FClose;
151
152static int CL2000Putchar(int c)
153{
154#if USE_BUFFER_OUTPUT
155 if(idx < BUFFER_SIZE) {
156 buffer[idx] = (char) c;
157 idx++;
158 /* "buffer[idx]" instead of "c" eliminates "never used" warning */
159 return (buffer[idx]);
160 }
161 else {
162 return EOF;
163 }
164#else
165 return putchar(c);
166#endif
167}
168
169static void CL2000Flush()
170{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected