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

Function fmt_flags

tools/netstat/common.c:61–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59#include "common.h"
60
61const char *
62fmt_flags(const struct bits *p, int f)
63{
64 static char name[33];
65 char *flags;
66
67 for (flags = name; p->b_mask; p++)
68 if (p->b_mask & f)
69 *flags++ = p->b_val;
70 *flags = '\0';
71 return (name);
72}
73
74void
75print_flags_generic(int flags, const struct bits *pbits, const char *format,

Callers 2

p_nhflagsFunction · 0.85
print_flags_genericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected