Lines Matching refs:fprintf

54 	(void) fprintf(file, "%3d %3d ", jc, js);
57 (void) fprintf(file, "%c", (bit_test(b, i) ? '1' : '0'));
60 (void) fprintf(file, "%c", '\n');
71 (void) fprintf(file, "Testing with TEST_LENGTH = %d\n\n", test_length);
73 (void) fprintf(file, "test _bit_byte, _bit_mask, and bitstr_size\n");
74 (void) fprintf(file, " i _bit_byte(i) _bit_mask(i) bitstr_size(i)\n");
77 (void) fprintf(file, "%3d%15u%15u%15zu\n",
83 (void) fprintf(file, "\ntest bit_alloc, clearbits, bit_ffc, bit_ffs\n");
84 (void) fprintf(file, "be: 0 -1 ");
86 (void) fprintf(file, "%c", '0');
87 (void) fprintf(file, "\nis: ");
90 (void) fprintf(file, "\ntest bit_set\n");
93 (void) fprintf(file, "be: 1 0 ");
95 (void) fprintf(file, "%c", "100"[i % 3]);
96 (void) fprintf(file, "\nis: ");
99 (void) fprintf(file, "\ntest bit_clear\n");
102 (void) fprintf(file, "be: 0 3 ");
104 (void) fprintf(file, "%c", "000100"[i % 6]);
105 (void) fprintf(file, "\nis: ");
108 (void) fprintf(file, "\ntest bit_test using previous bitstring\n");
109 (void) fprintf(file, " i bit_test(i)\n");
111 (void) fprintf(file, "%3d%15d\n", i, bit_test(bs, i));
114 (void) fprintf(file, "\ntest clearbits\n");
115 (void) fprintf(file, "be: 0 -1 ");
117 (void) fprintf(file, "%c", '0');
118 (void) fprintf(file, "\nis: ");
121 (void) fprintf(file, "\ntest bit_nset and bit_nclear\n");
123 (void) fprintf(file, "be: 0 1 0");
125 (void) fprintf(file, "%c", '1');
126 (void) fprintf(file, "0\nis: ");
130 (void) fprintf(file, "be: 0 1 01");
132 (void) fprintf(file, "%c", '0');
133 (void) fprintf(file, "10\nis: ");
137 (void) fprintf(file, "be: 0 -1 ");
139 (void) fprintf(file, "%c", '0');
140 (void) fprintf(file, "\nis: ");
143 (void) fprintf(file, "be: %3d 0 ",test_length - 1);
145 (void) fprintf(file, "%c", '1');
146 fprintf(file, "%c", '0');
147 (void) fprintf(file, "\nis: ");
150 (void) fprintf(file, "be: 0 -1 ");
152 (void) fprintf(file, "%c", '0');
153 (void) fprintf(file, "\nis: ");
156 (void) fprintf(file, "\n");
157 (void) fprintf(file, "first 1 bit should move right 1 position each line\n");
161 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length);
164 (void) fprintf(file, "\n");
165 (void) fprintf(file, "first 0 bit should move right 1 position each line\n");
169 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length);
172 (void) fprintf(file, "\n");
173 (void) fprintf(file, "first 0 bit should move left 1 position each line\n");
177 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length);
180 (void) fprintf(file, "\n");
181 (void) fprintf(file, "first 1 bit should move left 1 position each line\n");
185 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length);
188 (void) fprintf(file, "\n");
189 (void) fprintf(file, "0 bit should move right 1 position each line\n");
193 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length);
196 (void) fprintf(file, "\n");
197 (void) fprintf(file, "1 bit should move right 1 position each line\n");
201 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length);