ch 10/p106.c
//Function to store an input text in a char array using getchar

Function to store an input text in a char array using getchar
Function to store an input text in a char array using getchar
void read_line ( char buffer [] )
	{
		char character ;
		int i = 0 ;
		do
		{
			character = getchar () ;
			buffer [i] = character ;
			i++ ;
		}
		while ( character != '\n' ) ;
		buffer [i - 1] = '\0' ;
	}
void read_line ( char buffer [ ] ) { char character ; int i = 0 ; do { character = getchar ( ) ; buffer [ i ] = character ; i ++ ; } while ( character != ' \n ' ) ; buffer [ i - 1 ] = ' \0 ' ; }
Function to store an input text in a char array using getchar
Function to store an input text in a char array using getchar
//Loop to take input using getchar and store it in the buffer
