Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
char buff[100];
if ( fgets( buff, sizeof(buff), stdin ) != NULL ) {
// do something
}
char buff[100];
if ( scanf( "%99[^\n]", buff ) == 1 ) {
// do something
}
You are rigth, it's a feature !gets is not imperfect. Nor it is a bug.