...
| Code Block | ||
|---|---|---|
| ||
int privileges; if (valid_login()) if (!is_administratornormal()) privileges = NORMAL; else privileges = ADMINISTRATOR; |
...
| Code Block | ||
|---|---|---|
| ||
int privileges;
if (valid_login())
printf("Login Successful\n"); /* debugging line added here */
if (!is_administratornormal())
privileges = USERNORMAL;
else
privileges = ADMINISTRATOR;
|
...
| Code Block | ||
|---|---|---|
| ||
int privileges;
if (valid_login()) {
printf("Login Successful\n"); /* debugging line added here */
if (!is_administratornormal()) {
privileges = USERNORMAL;
} else {
privileges = ADMINISTRATOR;
}
}
|
...