MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_console_write

Function rt_console_write

bsp/x86/drivers/console.c:158–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158static rt_ssize_t rt_console_write(rt_device_t dev, rt_off_t pos, const void * buffer, rt_size_t size)
159{
160 rt_size_t i = size;
161 const char* str = buffer;
162
163 while(i--)
164 {
165 rt_console_putc(*str++);
166 }
167
168 return size;
169}
170
171static rt_ssize_t rt_console_read(rt_device_t dev, rt_off_t pos, void* buffer, rt_size_t size)
172{

Callers

nothing calls this directly

Calls 1

rt_console_putcFunction · 0.85

Tested by

no test coverage detected