blob: 0133b190e2c569569bf63e17ed093ab184003367 [file] [log] [blame]
#include "stdio_impl.h"
#include <limits.h>
#include <string.h>
char* gets(char* s) {
char* ret = fgets(s, INT_MAX, stdin);
if (ret && s[strlen(s) - 1] == '\n')
s[strlen(s) - 1] = 0;
return ret;
}