Subversion Repositories Kolibri OS

Rev

Rev 8793 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8793 Rev 9081
Line 9... Line 9...
9
    con_init();
9
    con_init();
10
    if(con_gets(str, STDIO_MAX_MEM)==NULL){
10
    if(con_gets(str, STDIO_MAX_MEM)==NULL){
11
        errno = EIO;
11
        errno = EIO;
12
        return NULL;
12
        return NULL;
13
    }
13
    }
-
 
14
    
-
 
15
    int str_len = strlen(str);
-
 
16
    if(str[str_len-1]=='\n'){
14
    str[strlen(str)-1]='\0';
17
        str[str_len-1]='\0';
-
 
18
    }
15
    return str;
19
    return str;
16
}
20
}
17
21