| 5 | #include <stdlib.h> |
| 6 | |
| 7 | static void test_stdio(void) |
| 8 | { |
| 9 | acl::string buf; |
| 10 | acl::ifstream in; |
| 11 | in.open(0, O_RDONLY); |
| 12 | |
| 13 | printf("waiting input from stdin:\r\n"); |
| 14 | if (in.gets(buf)) |
| 15 | printf(">>>>ok, gets: %s\n", buf.c_str()); |
| 16 | else |
| 17 | printf(">>>gets error, %s\n", acl_last_serror()); |
| 18 | } |
| 19 | |
| 20 | int main(void) |
| 21 | { |
no test coverage detected
searching dependent graphs…