hmmmm, so i tried two things in response to your reply.
first I changed my:
Code:
int getval()
{
char car;
car = getc(stdin);
fpurge(stdin);
return (0);
}
to:
Code:
int getval()
{
char car;
car = getc(stdin);
fpurge(stdin);
return getc(stdin);
}
which made the program run inncorrectly, if wouldnt echo the new vaules unless i hit the return key twice, and it still didnt fix the ! kill problem..
then i tried a different way, changing:
Code:
int getval()
{
char car;
car = getc(stdin);
fpurge(stdin);
return (0);
}
to:
Code:
int getval()
{
return getc(stdin);
}
that also made the program comply incorrectly, run incorrectly, and didnt solve the ! kill problem.
i am new at this, maybe you meant somthing i didnt quite understand. lemme know what you think i did wrong, or what i can do to cure the initial problem.
thanks again =)