Subversion Repositories HelenOS

Rev

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

Rev 2799 Rev 2925
Line 36... Line 36...
36
    int phoneid;
36
    int phoneid;
37
    int res;
37
    int res;
38
    static int msgid = 1;
38
    static int msgid = 1;
39
    char c;
39
    char c;
40
 
40
 
41
    printf("Select phoneid to send msg: 2-9 (Q to skip)\n");
41
    printf("Select phoneid to send msg: 2-9 (q to skip)\n");
42
    do {
42
    do {
43
        c = getchar();
43
        c = getchar();
44
        if (c == 'Q' || c == 'q')
44
        if ((c == 'Q') || (c == 'q'))
45
            return TEST_SKIPPED;
45
            return TEST_SKIPPED;
46
    } while (c < '2' || c > '9');
46
    } while (c < '2' || c > '9');
47
    phoneid = c - '0';
47
    phoneid = c - '0';
48
   
48
   
49
    printf("Sending msg...");
49
    printf("Sending msg...");