Hi>Using ctype.h header file I want to validate user input such that if they enter input of the type not specified an error message is generated and the user then gets a chance to input again_I haven't been able to do the latter>Please help:
#include<stdio. h>
#include<ctype. h>
Printf("Name:") ;
scanf("%s",&Nam e);
isalpha(Name);/*error output if user inputs integer. however user cannot input again*/
Pls help.
#include<stdio. h>
#include<ctype. h>
Printf("Name:") ;
scanf("%s",&Nam e);
isalpha(Name);/*error output if user inputs integer. however user cannot input again*/
Pls help.
Comment