63 |
infile = redirect_stdin(infilename); |
infile = redirect_stdin(infilename); |
64 |
CU_TEST(-1 == readln(NULL, STR_LEN)); /* NULL str */ |
CU_TEST(-1 == readln(NULL, STR_LEN)); /* NULL str */ |
65 |
rewind(infile); |
rewind(infile); |
66 |
CU_TEST(0 == readln(str1, 0)); /* max = 0 */ |
CU_TEST(0 == readln(str1, 0)); /* max = 0 */ |
67 |
rewind(infile); |
rewind(infile); |
68 |
CU_TEST(-1 == readln(str1, STR_LEN)); /* read, but stream empty */ |
CU_TEST(-1 == readln(str1, STR_LEN)); /* read, but stream empty */ |
69 |
reset_stdin(); |
reset_stdin(); |