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: "); 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);