blob: 0fc9e6af0c741f0c2d300217e20083f5c629908f [file] [log] [blame]
Viet-Trung Luu96b05c12016-01-11 11:26:36 -08001#include "stdio_impl.h"
2#include <limits.h>
3#include <string.h>
4
George Kulakowski17e3b042016-02-18 15:59:50 -08005char* gets(char* s) {
6 char* ret = fgets(s, INT_MAX, stdin);
7 if (ret && s[strlen(s) - 1] == '\n')
8 s[strlen(s) - 1] = 0;
9 return ret;
Viet-Trung Luu96b05c12016-01-11 11:26:36 -080010}