From c5adf96adf4a42fd91e0ea612446a990244087d6 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Wed, 27 Mar 2024 01:32:03 +0300 Subject: [PATCH] extol.c: move functions below `main` --- c-programming/jokes/extol.c | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/c-programming/jokes/extol.c b/c-programming/jokes/extol.c index f4c5fe9..d641094 100644 --- a/c-programming/jokes/extol.c +++ b/c-programming/jokes/extol.c @@ -19,6 +19,21 @@ enum #define EXTOL_FILE_NAME "extol.txt" #define EXTOL_FILE_LIMIT 128 +int extol (FILE *f); +int extol_interface (signed char type); +void extol_quiet (void); + +int +main (void) +{ + int i; + + for (i = 0; i < 2; i++) + printf (EXTOL_PROTOTYPE ": %d\n", extol_interface (EXTOL_NORMAL)); + atexit (&extol_quiet); + return 0; +} + int extol (FILE *f) { @@ -86,14 +101,3 @@ extol_quiet (void) { extol_interface (EXTOL_QUIET); } - -int -main (void) -{ - int i; - - for (i = 0; i < 2; i++) - printf (EXTOL_PROTOTYPE ": %d\n", extol_interface (EXTOL_NORMAL)); - atexit (&extol_quiet); - return 0; -}