minor syntax fixes

This commit is contained in:
Valerie Wolfe 2024-03-23 12:20:38 -04:00
parent 8c592ab83e
commit d97c7f27b6

23
main.c
View file

@ -49,7 +49,7 @@ void help() {
} }
void stripe(const unsigned short int color) { void stripe(const unsigned short int color) {
printf(ANSI "%dum" STRIPE, color); printf(ANSI "%dm" STRIPE, color);
} }
int main(int argc, char **argv) { int main(int argc, char **argv) {
@ -94,18 +94,18 @@ int main(int argc, char **argv) {
break; break;
case 'p': // - PANSEXUAL - case 'p': // - PANSEXUAL -
draw(MAGENTA); stripe(MAGENTA);
draw(L_YELLOW); stripe(L_YELLOW);
draw(CYAN); stripe(CYAN);
break; break;
case 'r': // - RAINBOW - case 'r': // - RAINBOW -
draw(RED); stripe(RED);
draw(L_RED); stripe(L_RED);
draw(L_YELLOW); stripe(L_YELLOW);
draw(GREEN); stripe(GREEN);
draw(BLUE); stripe(BLUE);
draw(MAGENTA); stripe(MAGENTA);
break; break;
case 't': // - TRANSGENDER - case 't': // - TRANSGENDER -
@ -117,7 +117,8 @@ int main(int argc, char **argv) {
break; break;
default: default:
printf("pride-c: no flag '%c' found", sym printf("pride-c: no flag '%c' found", sym);
break;
} }
printf(RESET); printf(RESET);