// gcc -g -O0 -m32 -std=c99 control.c #include #include #include struct User { char name[8]; bool is_admin; }; int main() { struct User user = {0}; printf("Enter user name:\n"); gets(user.name); if(strcmp(user.name, "admin") == 0) user.is_admin = true; if(user.is_admin) printf("Welcome back administrator!\n"); else printf("Meh, hello %s. I was hoping for the administrator.\n", user.name); return 0; }