Subversion Repositories Kolibri OS

Rev

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

Rev 8687 Rev 8744
Line 4... Line 4...
4
#include 
4
#include 
5
#include 
5
#include 
Line 6... Line 6...
6
 
6
 
7
char *gets(char* str)
7
char *gets(char* str)
8
{
8
{
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
    str[strlen(str)-1]='\0';
14
    str[strlen(str)-1]='\0';