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

Function printb

tools/route/route.c:1932–1956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1930}
1931
1932static void
1933printb(int b, const char *str)
1934{
1935 int i;
1936 int gotsome = 0;
1937
1938 if (b == 0)
1939 return;
1940 while ((i = *str++) != 0) {
1941 if (b & (1 << (i-1))) {
1942 if (gotsome == 0)
1943 i = '<';
1944 else
1945 i = ',';
1946 putchar(i);
1947 gotsome = 1;
1948 for (; (i = *str) > 32; str++)
1949 putchar(i);
1950 } else
1951 while (*str > 32)
1952 str++;
1953 }
1954 if (gotsome)
1955 putchar('>');
1956}
1957
1958int
1959keyword(const char *cp)

Callers 4

print_rtmsgFunction · 0.70
print_getmsgFunction · 0.70
pmsg_commonFunction · 0.70
pmsg_addrsFunction · 0.70

Calls 1

putcharFunction · 0.85

Tested by

no test coverage detected