aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-09-23 21:09:17 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-09-23 21:09:17 +0200
commit0dd5bbaf3ab1288adec3fdf6b25bc09fb98b5e15 (patch)
treedb1a04c234062575c8f5f0a4aec8c6da53ff77d1 /src/main.c
parentd51a86748a2826e5508451bfd3cc6fba14adc56f (diff)
downloadAsciiMap-master.tar.gz
formatting / code styleHEADmaster
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/main.c b/src/main.c
index e9c5afe..16c6524 100644
--- a/src/main.c
+++ b/src/main.c
@@ -23,8 +23,7 @@
#define CHAR_SIZE_X 2 //How many pixels should form one ASCII char?
#define CHAR_SIZE_Y (2 * CHAR_SIZE_X)
-struct prog_param
-{
+struct prog_param {
char *filename;
char *character_map;
unsigned int charsize_x;
@@ -40,8 +39,7 @@ struct prog_param parse_args(int argc, char *argv[]);
void print_help( char* _argv_0 );
-int main(int argc, char *argv[])
-{
+int main(int argc, char *argv[]) {
struct prog_param args = parse_args(argc, argv);
struct bitmap_image bitmap;
@@ -101,8 +99,7 @@ int main(int argc, char *argv[])
return 0;
}//main
-struct prog_param parse_args(int argc, char *argv[])
-{
+struct prog_param parse_args(int argc, char *argv[]) {
struct prog_param ret;
memset(&ret, 0, sizeof ret);
@@ -177,8 +174,7 @@ struct prog_param parse_args(int argc, char *argv[])
return ret;
}
-void print_help( char* _argv_0 )
-{
+void print_help( char* _argv_0 ) {
printf(
"ASCIIMap\n"
"(c) 2019 Jonas Gunz, github.com/kompetenzbolzen/AsciiMap\n"