Narthex

Modular dictionary generator
git clone git@git.mcdim.xyz:/var/www/git/Narthex.git
Log | Files | Refs | README | LICENSE

commit cbc2353f524a01eb55a3f7188cefa954b4b4552f
parent e509529a845c6522a9a3a82a2af7aedc4a7e8c87
Author: Michael Constantine Dimopoulos <mk@mcdim.xyz>
Date:   Wed, 11 Aug 2021 10:32:44 +0000

Updated nleet style

Diffstat:
Mleet/nleet.c | 55++++++++++++++++++++++++++++---------------------------
1 file changed, 28 insertions(+), 27 deletions(-)

diff --git a/leet/nleet.c b/leet/nleet.c @@ -1,9 +1,3 @@ -#include <stdlib.h> -#include <ctype.h> -#include <stdio.h> -#include <errno.h> -#include <string.h> - /* * nleet - Narthex leetifier * @@ -24,10 +18,38 @@ * */ +#include <stdlib.h> +#include <ctype.h> +#include <stdio.h> +#include <errno.h> +#include <string.h> #define VERSION "v1.2" #define BUFFER_SIZE 256 + + +static void +help(char * exename) +{ + printf( "nleet - Narthex leetfier %s\n" + "By Michael C. Dim. <mk@mcdim.xyz>\n\n" + + "-h Print this panel & exit\n" + "-v Print current version & exit\n\n" + "Usage: cat [FILENAME] | %s\n" + " %s [FILENAME]\n", + VERSION, exename, exename); + exit(EXIT_SUCCESS); +} + +static void +die(char * str) +{ + printf("%s\n", str); + exit(EXIT_SUCCESS); +} + FILE * save_stdin(FILE *f) { @@ -85,27 +107,6 @@ leetify(FILE *f, int full_upper) } } -static void -die(char * str) -{ - printf("%s\n", str); - exit(EXIT_SUCCESS); -} - -static void -help(char * exename) -{ - printf( "nleet - Narthex leetfier %s\n" - "By Michael C. Dim. <mk@mcdim.xyz>\n\n" - - "-h Print this panel & exit\n" - "-v Print current version & exit\n\n" - "Usage: cat [FILENAME] | %s\n" - " %s [FILENAME]\n", - VERSION, exename, exename); - exit(EXIT_SUCCESS); -} - void main(int argc, char* argv[]) {