Skip to content

Commit

Permalink
Added support for the NULL-character.
Browse files Browse the repository at this point in the history
  • Loading branch information
timlg07 committed Nov 17, 2020
1 parent 9bbd271 commit f8bd4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getKey.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ int main(int argc, char *argv[]) {
char c;
if (argc > 1) {
c = atoi(argv[1]);
if (!c) {
if (!c && argv[1][0] != '0') {
c = argv[1][0];
}
} else {
Expand Down

0 comments on commit f8bd4bd

Please sign in to comment.