Rev 8687 | Go to most recent revision | Details | Compare with Previous | 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 | { |
||
8744 | turbocat | 9 | con_init(); |
10 | if(con_gets(str, STDIO_MAX_MEM)==NULL){ |
||
8687 | turbocat | 11 | errno = EIO; |
12 | return NULL; |
||
13 | } |
||
14 | str[strlen(str)-1]='\0'; |
||
15 | return str; |
||
16 | } |