Código
Para ver si hay algo, deberías leer nuevamente el teclado, y preguntar si en esa variable hay algo.
Código
Si leyeras el teclado con HOLA MUNDO, en nuevo teclado te quedaria "ndo" si no me equivoco.
#include <stdio.h> #include <stdlib.h> int main() { char *s; }