MCPcopy Create free account
hub / github.com/corosync/corosync / fprint_group

Function fprint_group

tools/corosync-cpgtool.c:97–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97static void fprint_group (FILE *f, int escape, const struct cpg_name *group) {
98 int i;
99 char c;
100
101 for (i = 0; i < group->length; i++) {
102 c = group->value[i];
103
104 if (!escape || (c >= ' ' && c < 0x7f && c != '\\')) {
105 fputc (c, f);
106 } else {
107 if (c == '\\')
108 fprintf (f, "\\\\");
109 else
110 fprintf (f, "\\x%02X", c);
111 }
112 }
113}
114
115static int display_groups (char delimiter, int escape)
116{

Callers 2

display_groupsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected