Author | Jamozed <[email protected]> |
Date | 2020-07-06 12:00:35 |
Commit | 062c74fe54c9751eb57434f8ed40fba624ec42f6 |
Parent | 82b2c724c61fe094bbdee4f977b7091e4c58c96b |
yes: Rename argc and argv for consistency
Diffstat
M | src/yes.c | | | 8 | ++++---- |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/yes.c b/src/yes.c index 8f8c342..7aba4fa 100644 --- a/src/yes.c +++ b/src/yes.c @@ -1,4 +1,4 @@ -// yes.c, version 1.0.0 +// yes.c, version 1.0.1 // OMKOV coreutils implementation of yes // Copyright (C) 2020, Jakob Wakeling // All rights reserved. @@ -19,7 +19,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. #include <stdio.h> -int main(int argc, char *argv[]) { - if (argc == 1) for (;;) { fputc('y', stdout); fputc('\n', stdout); } - else for (;;) { puts(argv[1]); } return 0; +int main(int ac, char *av[]) { + if (ac == 1) for (;;) { puts("y"); } + else for (;;) { puts(av[1]); } }