diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-09-23 21:09:17 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-09-23 21:09:17 +0200 |
commit | 0dd5bbaf3ab1288adec3fdf6b25bc09fb98b5e15 (patch) | |
tree | db1a04c234062575c8f5f0a4aec8c6da53ff77d1 /src/main.c | |
parent | d51a86748a2826e5508451bfd3cc6fba14adc56f (diff) | |
download | AsciiMap-master.tar.gz |
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -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" |