diff options
author | Josias <justjosias@tutanota.com> | 2020-04-22 16:37:26 +0300 |
---|---|---|
committer | Josias <justjosias@tutanota.com> | 2020-04-22 16:37:26 +0300 |
commit | 44151ab9e87f78bec90e0685f6a48ea258f6a5de (patch) | |
tree | 72d0c3ae9015bca4ab405a74232c60120b079d35 | |
parent | 24438271686429b98aaff19ba04d64770d868a1d (diff) |
Remove size for colors array because it is already initialized
-rw-r--r-- | rccat.c | 2 | ||||
-rw-r--r-- | rccat.md | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -14,7 +14,7 @@ #define KCYN "\x1B[36m" #define KWHT "\x1B[37m" -const char *colors[7] = {KNRM, KRED, KGRN, KYEL, KMAG, KCYN}; +const char *colors[] = {KNRM, KRED, KGRN, KYEL, KMAG, KCYN}; int lastcolor = 0; void printColors(char *text) @@ -48,7 +48,7 @@ Now the colors: #define KCYN "\x1B[36m" #define KWHT "\x1B[37m" -const char *colors[7] = {KNRM, KRED, KGRN, KYEL, KMAG, KCYN}; +const char *colors[] = {KNRM, KRED, KGRN, KYEL, KMAG, KCYN}; ``` These are all the codes for the colors we want, and an array to order them nicely to randomly index them. |