#include #include #include int main( ) { char *str; size_t isize =256; size_t len; str = (char *) malloc( isize * sizeof (char) ); printf( "Enter a string :"); // gets( str ); // Should not be used anymore len = getline ( &str, &isize, stdin); printf( "\nYou entered: "); puts( str ); printf( "\n"); return 0; }