Lines Matching refs:outstr

37 	const char outstr[] = "hello world!\n";
38 char strbuf[sizeof outstr];
61 setbuffer(fp, strbuf, sizeof(outstr) - 1);
63 if (fwrite(outstr, sizeof(outstr) - 1, 1, fp) != 1) {
111 } else if (fread(buf, sizeof(outstr) - 1, 1, fp) != 1) {
114 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0) {
129 } else if (fread(buf, sizeof(outstr) - 1, 1, fp) != 1) {
132 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0) {
138 if (fseek(fp, -((int) sizeof(outstr) - 1), SEEK_CUR) != 0) {
147 } else if (fread(buf, sizeof(outstr) - 1, 1, fp) != 1) {
150 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0) {
156 if (fseeko(fp, -((int) sizeof(outstr) - 1), SEEK_CUR) != 0) {
165 } else if (fread(buf, sizeof(outstr) - 1, 1, fp) != 1) {
168 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0) {
174 if (fseek(fp, -((int) sizeof(outstr) - 1), SEEK_END) != 0) {
183 } else if (fread(buf, sizeof(outstr) - 1, 1, fp) != 1) {
186 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0) {
192 if (fseeko(fp, -((int) sizeof(outstr) - 1), SEEK_END) != 0) {
201 } else if (fread(buf, sizeof(outstr) - 1, 1, fp) != 1) {
204 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0) {
209 if (fwrite(outstr, sizeof(outstr) - 1, 1, fp) != 1) {
215 if (fwrite(outstr, sizeof(outstr) - 1, 1, fp) != 1) {
221 if (fwrite(outstr, sizeof(outstr) - 1, 1, fp) != 1) {
227 if (fwrite(outstr, sizeof(outstr) - 1, 1, fp) != 1) {
246 if (fseek(fp, -(2 + 2 * (sizeof(outstr) - 1)), SEEK_CUR) != 0) {
279 if (fread(buf, 1, 2 + 2 * (sizeof(outstr) - 1), fp) != 2 + 2
280 * (sizeof(outstr) - 1)) {
283 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0
284 || memcmp(&buf[sizeof(outstr) - 1], outstr, sizeof(outstr) - 1) != 0
285 || buf[2 * (sizeof(outstr) - 1)] != '1'
286 || buf[2 * (sizeof(outstr) - 1) + 1] != '2') {
292 } else if (fseek(fp, -(2 + 2 * (sizeof(outstr) - 1)), SEEK_END) != 0) {
295 } else if (fread(buf, 1, 2 + 2 * (sizeof(outstr) - 1), fp)
296 != 2 + 2 * (sizeof(outstr) - 1)) {
299 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0
300 || memcmp(&buf[sizeof(outstr) - 1], outstr, sizeof(outstr) - 1) != 0
301 || buf[2 * (sizeof(outstr) - 1)] != '1') {
304 } else if (buf[2 * (sizeof(outstr) - 1) + 1] == '9') {
307 } else if (buf[2 * (sizeof(outstr) - 1) + 1] != '2') {