diff options
author | banana <delgadillo.tyler@gmail.com> | 2024-03-22 13:52:05 -0700 |
---|---|---|
committer | banana <delgadillo.tyler@gmail.com> | 2024-03-22 13:52:05 -0700 |
commit | f401289e371a76ff0dbaea40f7f94f7b85c4b2bd (patch) | |
tree | 30b66628375b55e2be46cc19b1290c78eed0269d /inc |
Diffstat (limited to 'inc')
-rw-r--r-- | inc/num.h | 160 | ||||
-rw-r--r-- | inc/tga.h | 1 | ||||
-rw-r--r-- | inc/upc.h | 2 |
3 files changed, 163 insertions, 0 deletions
diff --git a/inc/num.h b/inc/num.h new file mode 100644 index 0000000..7cd93d8 --- /dev/null +++ b/inc/num.h @@ -0,0 +1,160 @@ +const char NUMBER[10][16][8] = { 0, 0, 0, 0, 0, 0, 0, 0, // NUMBER 0 + 0, 0, 1, 1, 1, 1, 0, 0, + 0, 1, 1, 1, 1, 1, 1, 0, + 0, 1, 1, 0, 0, 1, 1, 0, + 0, 1, 1, 0, 0, 1, 1, 0, + 0, 1, 1, 0, 1, 1, 1, 0, + 0, 1, 1, 0, 1, 1, 1, 0, + 0, 1, 1, 1, 1, 1, 1, 0, + 0, 1, 1, 1, 1, 1, 1, 0, + 0, 1, 1, 1, 0, 1, 1, 0, + 0, 1, 1, 1, 0, 1, 1, 0, + 0, 1, 1, 0, 0, 1, 1, 0, + 0, 1, 1, 0, 0, 1, 1, 0, + 0, 1, 1, 1, 1, 1, 1, 0, + 0, 0, 1, 1, 1, 1, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, // NUMBER 1 + 0, 0, 0, 1, 1, 0, 0, 0, + 0, 1, 1, 1, 1, 0, 0, 0, + 0, 1, 1, 1, 1, 0, 0, 0, + 0, 0, 0, 1, 1, 0, 0, 0, + 0, 0, 0, 1, 1, 0, 0, 0, + 0, 0, 0, 1, 1, 0, 0, 0, + 0, 0, 0, 1, 1, 0, 0, 0, + 0, 0, 0, 1, 1, 0, 0, 0, + 0, 0, 0, 1,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 1, 1, 0, 0, + 0, 1, 1, 1, 1, 1, 1, 0, + 0, 1, 1, 0, 0, 1, 1, 0, + 0, 1, 1, 0, 0, 1, 1, 0, + 0, 1, 1, 0, 0, 1, 1, 0, + 0, 1, 1, 0, 0, 1, 1, 0, + 0, 1, 1, 1, 1, 1, 1, 0, + 0, 0, 1, 1, 1, 1, 1, 0, + 0, 0, 0, 0, 0, 1, 1, 0, + 0, 0, 0, 0, 0, 1, 1, 0, + 0, 0, 0, 0, 0, 1, 1, 0, + 0, 1, 1 ,0, 0, 1, 1, 0, + 0, 1, 1, 1, 1, 1, 1, 0, + 0, 0, 1, 1, 1, 1, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0 }; diff --git a/inc/tga.h b/inc/tga.h new file mode 100644 index 0000000..4b449f4 --- /dev/null +++ b/inc/tga.h @@ -0,0 +1 @@ +void CreateTGA( char *filename, short width, short height, void *image ); diff --git a/inc/upc.h b/inc/upc.h new file mode 100644 index 0000000..fd0cf01 --- /dev/null +++ b/inc/upc.h @@ -0,0 +1,2 @@ +const char* create_upc_a( char *input ); +char upc_a_calculate_check_digit( char *digits ); |