C90 compilant commenting style
This commit is contained in:
parent
496ebd1158
commit
76942f6933
|
@ -11,13 +11,13 @@ int main(void) {
|
||||||
|
|
||||||
printf("Please enter Password: ");
|
printf("Please enter Password: ");
|
||||||
|
|
||||||
// read in password from standard input, exit on error.
|
/* read in password from standard input, exit on error. */
|
||||||
if (getline(&input_line, &input_size, stdin) == -1) {
|
if (getline(&input_line, &input_size, stdin) == -1) {
|
||||||
perror("Error");
|
perror("Error");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// compare password, print info, exit appropriately
|
/* compare password, print info, exit appropriately */
|
||||||
if (strcmp(input_line, password) == 0) {
|
if (strcmp(input_line, password) == 0) {
|
||||||
puts("Success!");
|
puts("Success!");
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
|
Loading…
Reference in a new issue