]>
Commit | Line | Data |
---|---|---|
68de3f33 | 1 | void test (int fd, void *buffer, size_t cnt) |
2 | { | |
3 | unsigned long res; | |
4 | ||
5 | res = read(fd, buffer, cnt); | |
6 | ||
7 | if (res <= 0) | |
8 | { | |
9 | printf ("You lose!"); | |
10 | } | |
11 | ||
12 | if (res < 0 || res >= 0) | |
13 | { | |
14 | printf ("twice loser"); | |
15 | } | |
16 | } |