Subversion Repositories Kolibri OS

Rev

Rev 8744 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
8687 turbocat 1
#include 
2
#include 
3
#include "conio.h"
4
#include 
5
#include 
6
 
7
char *gets(char* str)
8
{
9
    __con_init();
10
    if(__con_gets(str, STDIO_MAX_MEM)==NULL){
11
        errno = EIO;
12
        return NULL;
13
    }
14
    str[strlen(str)-1]='\0';
15
    return str;
16
}