c – Allows the user to enter letters only when registering.

Condition to receive only letters in this

scanf ("% s", & name);

int check (struct reg list)[]char name[128]) {

int i;
for (i = 0; i <reg_size; i ++) {
if (! strncmp (list[i].name, name, 128))
Return 1;
}
Return 0;
}

Data record invalid (structure list)[5]) {
int i;
for (i = 0; i <5; ++ i)
char name[128];
printf ("enter name:  n");
scanf ("% s", & name);
if (strcmp[i] < '0' || nome[i] >    & # 39; # 9 & 39);
printf ("Enter a valid name");
}
otherwise if (check (list, name)) {
reg_size ++;
list[reg_size-1].id = reg_size;
strcpy[reg_size-1]name, name);
list[reg_size-1].cred = 0.0;
printf (" nuser% s created with id% d  n  n", list[reg_size-1].name, reg_size);
}
otherwise
{
printf (" nName not available  n  n");
}
}