Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/rt-thread
/ flush_comm
Function
flush_comm
examples/libc/termios_test.c:275–283 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
273
}
274
275
int flush_comm(int fd)
276
{
277
if(fd == -1)
278
{
279
return -1;
280
}
281
tcflush(fd,TCIFLUSH);
282
return 0;
283
}
284
285
void termios_test_entry(void *p)
286
{
Callers
1
termios_test_entry
Function · 0.85
Calls
1
tcflush
Function · 0.85
Tested by
no test coverage detected