Subversion Repositories HelenOS

Rev

Rev 2785 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2785 Rev 2786
Line 35... Line 35...
35
{
35
{
36
    char c;
36
    char c;
37
    int res;
37
    int res;
38
    int phoneid;
38
    int phoneid;
39
 
39
 
40
    printf("Select phoneid to hangup: 2-9 (Q to skip)\n");
40
    printf("Select phoneid to hangup: 2-9 (q to skip)\n");
41
    do {
41
    do {
42
        c = getchar();
42
        c = getchar();
43
        if (c == 'Q' || c == 'q')
43
        if ((c == 'Q') || (c == 'q'))
44
            return TEST_SKIPPED;
44
            return TEST_SKIPPED;
45
    } while (c < '2' || c > '9');
45
    } while (c < '2' || c > '9');
46
    phoneid = c - '0';
46
    phoneid = c - '0';
47
   
47
   
48
    printf("Hanging up...");
48
    printf("Hanging up...");