void welcome() { printf("Welcome!\n"); exit(0); }
void goodbye() { printf("Wrong identity, exiting!\n"); exit(1); }
int main(){
char name[8];
char pw[8];
printf("login: ");
get_line(name);
printf("password: ");
get_line(pw);
if(match(name, pw) == 0)
welcome();
else
goodbye();
}