Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dooris
concierge
Commits
76942f69
Commit
76942f69
authored
Jun 10, 2014
by
anthraxx
Browse files
C90 compilant commenting style
parent
496ebd11
Changes
1
Hide whitespace changes
Inline
Side-by-side
challenge/challenge.c
View file @
76942f69
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment