#include <stdio.h>
#define LIMITE 10
int main(void) {
char linha [LIMITE];
puts("Digite alguma coisa: ");
if (fgets(linha, sizeof(linha), stdin) != NULL) {
printf("Voce digitou: %s\n", linha);
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgojZGVmaW5lIExJTUlURSAxMAoKaW50IG1haW4odm9pZCkgewoJY2hhciBsaW5oYSBbTElNSVRFXTsKCXB1dHMoIkRpZ2l0ZSBhbGd1bWEgY29pc2E6ICIpOwoJCglpZiAoZmdldHMobGluaGEsIHNpemVvZihsaW5oYSksIHN0ZGluKSAhPSBOVUxMKSB7CgkJcHJpbnRmKCJWb2NlIGRpZ2l0b3U6ICVzXG4iLCBsaW5oYSk7Cgl9CglyZXR1cm4gMDsKfQ==