commit 11699680ef216d966001c6c00ffdfb08f8f44731
parent 9a0bb594f3fe1ae8268f9e5bf4f762a2579ffb62
Author: Michael Constantine Dimopoulos <mk@mcdim.xyz>
Date: Mon, 26 Jul 2021 09:43:49 +0000
Fixed formatting across all files
Diffstat:
4 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/com/ncom.c b/com/ncom.c
@@ -88,7 +88,7 @@ help(char * exename)
exit(EXIT_SUCCESS);
}
-void
+static void
die(char * str)
{
printf("%s\n", str);
diff --git a/enhance/nhan.c b/enhance/nhan.c
@@ -29,7 +29,9 @@ save_stdin(FILE *f)
return f2;
}
-void cap(char string[]){
+void
+cap(char string[])
+{
int i;
int x = strlen(string);
for (i=0; i<x-1; i++){
@@ -48,7 +50,7 @@ print_only(FILE *f)
}
}
-void
+static void
enhance(FILE *f, int full_upper)
{
char buffer[BUFFER_SIZE];
@@ -64,13 +66,15 @@ enhance(FILE *f, int full_upper)
}
}
-void die(char * str)
+static void
+die(char * str)
{
printf("%s\n", str);
exit(EXIT_SUCCESS);
}
-void help(char * exename)
+static void
+help(char * exename)
{
printf( "Nhance - Narthex enhancer %s\n"
"By Michael C. Dim. <mk@mcdim.xyz>\n\n"
diff --git a/inc/nin.c b/inc/nin.c
@@ -55,7 +55,7 @@ help(char * exename)
exit(EXIT_SUCCESS);
}
-void
+static void
die(char * str)
{
printf("%d\n", str);
diff --git a/leet/nleet.c b/leet/nleet.c
@@ -29,7 +29,7 @@ save_stdin(FILE *f)
return f2;
}
-void
+static void
print_only(FILE *f)
{
char buffer[BUFFER_SIZE];
@@ -38,7 +38,7 @@ print_only(FILE *f)
}
}
-void
+static void
leetify(FILE *f, int full_upper)
{
char buffer[BUFFER_SIZE];