Code:/*i am writing a character input function that has the following properties *it ignores all white space character before starting to collect input. *it stops reading after a white space character has been entered *when the the '\n' character is entered it stores the character and then adds the * null character. it leaves all other character that could not be entered and continues reading the * them during its next call. */ #include <stdio.h> #include <stdlib.h> #define MAX 100 char name[MAX + 1]; int age; int read_line( char str[], int n) { int ch, i; while ( (ch == getchar()) != '\n' && ch != '\t && ch != EOF) if ( i < n && ch != ' ') { if ( str[0] == ' ' ) i--; str[i++] = ch; } str[i] = '\n'; str[i + 1] = '\0'; printf("%s", str); return i; } int main(void) { printf("\nThis program asks for you age and your name"); printf("\nEnter you names: "); read_line(name, MAX+ 2); printf("\nEnter your age: "); age == getchar(); printf(" Your name is: %s and your age %d", name, age); return 0; }