blob: 51512e25e5c8b68eb8795be501ffbb54a8258a45 [file] [log] [blame]
#include <limits.h>
#include <string.h>
#include "stdio_impl.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;
}