C90 compilant commenting style

This commit is contained in:
anthraxx 2014-06-10 22:56:01 +02:00
parent 496ebd1158
commit 76942f6933

View file

@ -11,13 +11,13 @@ int main(void) {
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) {
perror("Error");
exit(EXIT_FAILURE);
}
// compare password, print info, exit appropriately
/* compare password, print info, exit appropriately */
if (strcmp(input_line, password) == 0) {
puts("Success!");
exit(EXIT_SUCCESS);