Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. #include <stdio.h>
  2. #include <string.h>
  3. #include "conio.h"
  4. #include <errno.h>
  5.  
  6. char *gets(char* str)
  7. {
  8.     __con_init();
  9.     if(__con_gets(str, 4096)==NULL){
  10.         errno = EIO;
  11.         return NULL;
  12.     }
  13.     str[strlen(str)-1]='\0';
  14.     return str;
  15. }