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

Function list_countries

tools/ifconfig/ifieee80211.c:2455–2477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2453}
2454
2455static void
2456list_countries(void)
2457{
2458 struct regdata *rdp = getregdata();
2459 const struct country *cp;
2460 const struct regdomain *dp;
2461 int i;
2462
2463 i = 0;
2464 printf("\nCountry codes:\n");
2465 LIST_FOREACH(cp, &rdp->countries, next) {
2466 printf("%2s %-15.15s%s", cp->isoname,
2467 cp->name, ((i+1)%4) == 0 ? "\n" : " ");
2468 i++;
2469 }
2470 i = 0;
2471 printf("\nRegulatory domains:\n");
2472 LIST_FOREACH(dp, &rdp->domains, next) {
2473 printf("%-15.15s%s", dp->name, ((i+1)%4) == 0 ? "\n" : " ");
2474 i++;
2475 }
2476 printf("\n");
2477}
2478
2479static void
2480defaultcountry(const struct regdomain *rd)

Callers 1

ifieee80211.cFile · 0.85

Calls 2

getregdataFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected