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