#include int main(){ /* A nice long string */ char string[256]; printf( "Please enter your name: " ); /* notice stdin being passed in */ fgets ( string, 256, stdin ); printf( "Hello %s", string ); printf("Press to continue..."); getchar(); }