MCPcopy Create free account
hub / github.com/F-Stack/f-stack / LINE_CHECK

Function LINE_CHECK

tools/ifconfig/ifieee80211.c:2582–2600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2580}
2581
2582static void
2583LINE_CHECK(const char *fmt, ...)
2584{
2585 char buf[80];
2586 va_list ap;
2587 int n;
2588
2589 va_start(ap, fmt);
2590 n = vsnprintf(buf+1, sizeof(buf)-1, fmt, ap);
2591 va_end(ap);
2592 col += 1+n;
2593 if (col > MAXCOL) {
2594 LINE_BREAK();
2595 col += n;
2596 }
2597 buf[0] = spacer;
2598 printf("%s", buf);
2599 spacer = ' ';
2600}
2601
2602static int
2603getmaxrate(const uint8_t rates[15], uint8_t nrates)

Callers 6

list_roamFunction · 0.85
list_txparamsFunction · 0.85
print_regdomainFunction · 0.85
printkeyFunction · 0.85
printrateFunction · 0.85
ieee80211_statusFunction · 0.85

Calls 3

vsnprintfFunction · 0.85
LINE_BREAKFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected