| 76 | */ |
| 77 | |
| 78 | static char *getChallenge (int fd) |
| 79 | { |
| 80 | static char buf [512] ; |
| 81 | int num ; |
| 82 | |
| 83 | for (;;) |
| 84 | { |
| 85 | if ((num = remoteReadline (fd, buf, 511)) < 0) |
| 86 | return NULL ; |
| 87 | buf [num] = 0 ; |
| 88 | |
| 89 | if (strncmp (buf, "Challenge ", 10) == 0) |
| 90 | return &buf [10] ; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | |
| 95 | /* |
no test coverage detected