elonmusk 1.0.91 → 1.0.94

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +62 -51
  3. data/VERSION_NUMBER +1 -1
  4. data/bin/autocorrect +312 -0
  5. data/bin/black +0 -0
  6. data/bin/black_bold +0 -0
  7. data/bin/black_bold_underline +0 -0
  8. data/bin/black_underline +0 -0
  9. data/bin/blue +0 -0
  10. data/bin/blue_bold +0 -0
  11. data/bin/blue_bold_underline +0 -0
  12. data/bin/blue_underline +0 -0
  13. data/bin/bold +0 -0
  14. data/bin/cyan +0 -0
  15. data/bin/cyan_bold +0 -0
  16. data/bin/cyan_bold_underline +0 -0
  17. data/bin/cyan_underline +0 -0
  18. data/bin/green +0 -0
  19. data/bin/green_bold +0 -0
  20. data/bin/green_bold_underline +0 -0
  21. data/bin/green_underline +0 -0
  22. data/bin/magenta +0 -0
  23. data/bin/magenta_bold +0 -0
  24. data/bin/magenta_bold_underline +0 -0
  25. data/bin/magenta_underline +0 -0
  26. data/bin/red +0 -0
  27. data/bin/red_bold +0 -0
  28. data/bin/red_bold_underline +0 -0
  29. data/bin/red_underline +0 -0
  30. data/bin/underline +0 -0
  31. data/bin/white +0 -0
  32. data/bin/white_bold +0 -0
  33. data/bin/white_bold_underline +0 -0
  34. data/bin/white_underline +0 -0
  35. data/bin/yellow +0 -0
  36. data/bin/yellow_bold +0 -0
  37. data/bin/yellow_bold_underline +0 -0
  38. data/bin/yellow_underline +0 -0
  39. data/documentation/autocorrect +3 -0
  40. data/documentation/ctit +12 -1
  41. data/documentation/email +2 -2
  42. data/documentation/left_right.exe +4 -3
  43. data/gem_data/VERSION_NUMBER +1 -1
  44. data/gem_data/push_snap +30 -0
  45. data/images/Store.png +0 -0
  46. data/index.html +60 -57
  47. data/non_compiled_programs/autocorrect +312 -0
  48. data/push_snap +30 -0
  49. data/src/color_tools/black +0 -0
  50. data/src/color_tools/black.c +9 -12
  51. data/src/color_tools/black_bold +0 -0
  52. data/src/color_tools/black_bold.c +9 -12
  53. data/src/color_tools/black_bold_underline +0 -0
  54. data/src/color_tools/black_bold_underline.c +9 -12
  55. data/src/color_tools/black_underline +0 -0
  56. data/src/color_tools/black_underline.c +9 -12
  57. data/src/color_tools/blue +0 -0
  58. data/src/color_tools/blue.c +9 -12
  59. data/src/color_tools/blue_bold +0 -0
  60. data/src/color_tools/blue_bold.c +9 -12
  61. data/src/color_tools/blue_bold_underline +0 -0
  62. data/src/color_tools/blue_bold_underline.c +9 -12
  63. data/src/color_tools/blue_underline +0 -0
  64. data/src/color_tools/blue_underline.c +9 -12
  65. data/src/color_tools/bold +0 -0
  66. data/src/color_tools/bold.c +9 -12
  67. data/src/color_tools/colors.rb +9 -12
  68. data/src/color_tools/cyan +0 -0
  69. data/src/color_tools/cyan.c +9 -12
  70. data/src/color_tools/cyan_bold +0 -0
  71. data/src/color_tools/cyan_bold.c +9 -12
  72. data/src/color_tools/cyan_bold_underline +0 -0
  73. data/src/color_tools/cyan_bold_underline.c +9 -12
  74. data/src/color_tools/cyan_underline +0 -0
  75. data/src/color_tools/cyan_underline.c +9 -12
  76. data/src/color_tools/green +0 -0
  77. data/src/color_tools/green.c +9 -12
  78. data/src/color_tools/green_bold +0 -0
  79. data/src/color_tools/green_bold.c +9 -12
  80. data/src/color_tools/green_bold_underline +0 -0
  81. data/src/color_tools/green_bold_underline.c +9 -12
  82. data/src/color_tools/green_underline +0 -0
  83. data/src/color_tools/green_underline.c +9 -12
  84. data/src/color_tools/magenta +0 -0
  85. data/src/color_tools/magenta.c +9 -12
  86. data/src/color_tools/magenta_bold +0 -0
  87. data/src/color_tools/magenta_bold.c +9 -12
  88. data/src/color_tools/magenta_bold_underline +0 -0
  89. data/src/color_tools/magenta_bold_underline.c +9 -12
  90. data/src/color_tools/magenta_underline +0 -0
  91. data/src/color_tools/magenta_underline.c +9 -12
  92. data/src/color_tools/red +0 -0
  93. data/src/color_tools/red.c +9 -12
  94. data/src/color_tools/red_bold +0 -0
  95. data/src/color_tools/red_bold.c +9 -12
  96. data/src/color_tools/red_bold_underline +0 -0
  97. data/src/color_tools/red_bold_underline.c +9 -12
  98. data/src/color_tools/red_underline +0 -0
  99. data/src/color_tools/red_underline.c +9 -12
  100. data/src/color_tools/underline +0 -0
  101. data/src/color_tools/underline.c +9 -12
  102. data/src/color_tools/white +0 -0
  103. data/src/color_tools/white.c +9 -12
  104. data/src/color_tools/white_bold +0 -0
  105. data/src/color_tools/white_bold.c +9 -12
  106. data/src/color_tools/white_bold_underline +0 -0
  107. data/src/color_tools/white_bold_underline.c +9 -12
  108. data/src/color_tools/white_underline +0 -0
  109. data/src/color_tools/white_underline.c +9 -12
  110. data/src/color_tools/yellow +0 -0
  111. data/src/color_tools/yellow.c +9 -12
  112. data/src/color_tools/yellow_bold +0 -0
  113. data/src/color_tools/yellow_bold.c +9 -12
  114. data/src/color_tools/yellow_bold_underline +0 -0
  115. data/src/color_tools/yellow_bold_underline.c +9 -12
  116. data/src/color_tools/yellow_underline +0 -0
  117. data/src/color_tools/yellow_underline.c +9 -12
  118. metadata +8 -2
data/src/color_tools/bold CHANGED
Binary file
@@ -42,11 +42,11 @@
42
42
  #define FIRST_COLOR "\e[1m"
43
43
  #define SECOND_COLOR "\e[0m"
44
44
 
45
- int main(int argc, char** argv) {
46
- fputs(FIRST_COLOR, stdout);
47
45
 
48
-
46
+ int main(int argc, char** argv) {
49
47
  if (argc != 1) {
48
+ fputs(FIRST_COLOR, stdout);
49
+
50
50
  for (int i = 1; i < argc; ++i) {
51
51
  if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
52
52
  fputs(HELP_STR, stdout);
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
57
57
  }
58
58
 
59
59
  putchar('\n');
60
-
61
- goto end;
60
+
61
+ fputs(SECOND_COLOR, stdout);
62
+ return 0;
62
63
  }
64
+
65
+ fputs(FIRST_COLOR, stdout);
63
66
 
64
67
  for (;;) {
65
68
  const int c = getchar();
66
69
 
67
- if (c == EOF) goto end;
68
-
70
+ if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
69
71
  putchar(c);
70
72
  }
71
-
72
-
73
- end:
74
- fputs(SECOND_COLOR, stdout);
75
- return 0;
76
73
  }
77
74
 
78
75
 
@@ -18,11 +18,6 @@ if ARGV[0] == "clean"
18
18
  end
19
19
 
20
20
  ENDR = " }
21
-
22
-
23
- end:
24
- fputs(SECOND_COLOR, stdout);
25
- return 0;
26
21
  }
27
22
 
28
23
 
@@ -72,11 +67,11 @@ FIRST = "/*
72
67
  #define FIRST_COLOR %s
73
68
  #define SECOND_COLOR %s
74
69
 
75
- int main(int argc, char** argv) {
76
- fputs(FIRST_COLOR, stdout);
77
70
 
78
-
71
+ int main(int argc, char** argv) {
79
72
  if (argc != 1) {
73
+ fputs(FIRST_COLOR, stdout);
74
+
80
75
  for (int i = 1; i < argc; ++i) {
81
76
  if (!strcmp(argv[i], \"-h\") || !strcmp(argv[i], \"--help\")) {
82
77
  fputs(HELP_STR, stdout);
@@ -87,15 +82,17 @@ int main(int argc, char** argv) {
87
82
  }
88
83
 
89
84
  putchar('\\n');
90
-
91
- goto end;
85
+
86
+ fputs(SECOND_COLOR, stdout);
87
+ return 0;
92
88
  }
89
+
90
+ fputs(FIRST_COLOR, stdout);
93
91
 
94
92
  for (;;) {
95
93
  const int c = getchar();
96
94
 
97
- if (c == EOF) goto end;
98
-
95
+ if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
99
96
  "
100
97
 
101
98
  N = 1
data/src/color_tools/cyan CHANGED
Binary file
@@ -42,11 +42,11 @@
42
42
  #define FIRST_COLOR "\e[36m"
43
43
  #define SECOND_COLOR "\e[0m"
44
44
 
45
- int main(int argc, char** argv) {
46
- fputs(FIRST_COLOR, stdout);
47
45
 
48
-
46
+ int main(int argc, char** argv) {
49
47
  if (argc != 1) {
48
+ fputs(FIRST_COLOR, stdout);
49
+
50
50
  for (int i = 1; i < argc; ++i) {
51
51
  if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
52
52
  fputs(HELP_STR, stdout);
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
57
57
  }
58
58
 
59
59
  putchar('\n');
60
-
61
- goto end;
60
+
61
+ fputs(SECOND_COLOR, stdout);
62
+ return 0;
62
63
  }
64
+
65
+ fputs(FIRST_COLOR, stdout);
63
66
 
64
67
  for (;;) {
65
68
  const int c = getchar();
66
69
 
67
- if (c == EOF) goto end;
68
-
70
+ if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
69
71
  putchar(c);
70
72
  }
71
-
72
-
73
- end:
74
- fputs(SECOND_COLOR, stdout);
75
- return 0;
76
73
  }
77
74
 
78
75
 
Binary file
@@ -42,11 +42,11 @@
42
42
  #define FIRST_COLOR "\e[1m\e[36m"
43
43
  #define SECOND_COLOR "\e[0m\e[0m"
44
44
 
45
- int main(int argc, char** argv) {
46
- fputs(FIRST_COLOR, stdout);
47
45
 
48
-
46
+ int main(int argc, char** argv) {
49
47
  if (argc != 1) {
48
+ fputs(FIRST_COLOR, stdout);
49
+
50
50
  for (int i = 1; i < argc; ++i) {
51
51
  if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
52
52
  fputs(HELP_STR, stdout);
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
57
57
  }
58
58
 
59
59
  putchar('\n');
60
-
61
- goto end;
60
+
61
+ fputs(SECOND_COLOR, stdout);
62
+ return 0;
62
63
  }
64
+
65
+ fputs(FIRST_COLOR, stdout);
63
66
 
64
67
  for (;;) {
65
68
  const int c = getchar();
66
69
 
67
- if (c == EOF) goto end;
68
-
70
+ if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
69
71
  putchar(c);
70
72
  }
71
-
72
-
73
- end:
74
- fputs(SECOND_COLOR, stdout);
75
- return 0;
76
73
  }
77
74
 
78
75
 
Binary file
@@ -42,11 +42,11 @@
42
42
  #define FIRST_COLOR "\e[4m\e[1m\e[36m"
43
43
  #define SECOND_COLOR "\e[0m\e[0m\e[0m"
44
44
 
45
- int main(int argc, char** argv) {
46
- fputs(FIRST_COLOR, stdout);
47
45
 
48
-
46
+ int main(int argc, char** argv) {
49
47
  if (argc != 1) {
48
+ fputs(FIRST_COLOR, stdout);
49
+
50
50
  for (int i = 1; i < argc; ++i) {
51
51
  if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
52
52
  fputs(HELP_STR, stdout);
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
57
57
  }
58
58
 
59
59
  putchar('\n');
60
-
61
- goto end;
60
+
61
+ fputs(SECOND_COLOR, stdout);
62
+ return 0;
62
63
  }
64
+
65
+ fputs(FIRST_COLOR, stdout);
63
66
 
64
67
  for (;;) {
65
68
  const int c = getchar();
66
69
 
67
- if (c == EOF) goto end;
68
-
70
+ if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
69
71
  putchar(c);
70
72
  }
71
-
72
-
73
- end:
74
- fputs(SECOND_COLOR, stdout);
75
- return 0;
76
73
  }
77
74
 
78
75
 
Binary file
@@ -42,11 +42,11 @@
42
42
  #define FIRST_COLOR "\e[4m\e[36m"
43
43
  #define SECOND_COLOR "\e[0m\e[0m"
44
44
 
45
- int main(int argc, char** argv) {
46
- fputs(FIRST_COLOR, stdout);
47
45
 
48
-
46
+ int main(int argc, char** argv) {
49
47
  if (argc != 1) {
48
+ fputs(FIRST_COLOR, stdout);
49
+
50
50
  for (int i = 1; i < argc; ++i) {
51
51
  if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
52
52
  fputs(HELP_STR, stdout);
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
57
57
  }
58
58
 
59
59
  putchar('\n');
60
-
61
- goto end;
60
+
61
+ fputs(SECOND_COLOR, stdout);
62
+ return 0;
62
63
  }
64
+
65
+ fputs(FIRST_COLOR, stdout);
63
66
 
64
67
  for (;;) {
65
68
  const int c = getchar();
66
69
 
67
- if (c == EOF) goto end;
68
-
70
+ if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
69
71
  putchar(c);
70
72
  }
71
-
72
-
73
- end:
74
- fputs(SECOND_COLOR, stdout);
75
- return 0;
76
73
  }
77
74
 
78
75
 
Binary file
@@ -42,11 +42,11 @@
42
42
  #define FIRST_COLOR "\e[32m"
43
43
  #define SECOND_COLOR "\e[0m"
44
44
 
45
- int main(int argc, char** argv) {
46
- fputs(FIRST_COLOR, stdout);
47
45
 
48
-
46
+ int main(int argc, char** argv) {
49
47
  if (argc != 1) {
48
+ fputs(FIRST_COLOR, stdout);
49
+
50
50
  for (int i = 1; i < argc; ++i) {
51
51
  if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
52
52
  fputs(HELP_STR, stdout);
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
57
57
  }
58
58
 
59
59
  putchar('\n');
60
-
61
- goto end;
60
+
61
+ fputs(SECOND_COLOR, stdout);
62
+ return 0;
62
63
  }
64
+
65
+ fputs(FIRST_COLOR, stdout);
63
66
 
64
67
  for (;;) {
65
68
  const int c = getchar();
66
69
 
67
- if (c == EOF) goto end;
68
-
70
+ if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
69
71
  putchar(c);
70
72
  }
71
-
72
-
73
- end:
74
- fputs(SECOND_COLOR, stdout);
75
- return 0;
76
73
  }
77
74
 
78
75
 
Binary file
@@ -42,11 +42,11 @@
42
42
  #define FIRST_COLOR "\e[1m\e[32m"
43
43
  #define SECOND_COLOR "\e[0m\e[0m"
44
44
 
45
- int main(int argc, char** argv) {
46
- fputs(FIRST_COLOR, stdout);
47
45
 
48
-
46
+ int main(int argc, char** argv) {
49
47
  if (argc != 1) {
48
+ fputs(FIRST_COLOR, stdout);
49
+
50
50
  for (int i = 1; i < argc; ++i) {
51
51
  if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
52
52
  fputs(HELP_STR, stdout);
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
57
57
  }
58
58
 
59
59
  putchar('\n');
60
-
61
- goto end;
60
+
61
+ fputs(SECOND_COLOR, stdout);
62
+ return 0;
62
63
  }
64
+
65
+ fputs(FIRST_COLOR, stdout);
63
66
 
64
67
  for (;;) {
65
68
  const int c = getchar();
66
69
 
67
- if (c == EOF) goto end;
68
-
70
+ if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
69
71
  putchar(c);
70
72
  }
71
-
72
-
73
- end:
74
- fputs(SECOND_COLOR, stdout);
75
- return 0;
76
73
  }
77
74
 
78
75
 
Binary file
@@ -42,11 +42,11 @@
42
42
  #define FIRST_COLOR "\e[4m\e[1m\e[32m"
43
43
  #define SECOND_COLOR "\e[0m\e[0m\e[0m"
44
44
 
45
- int main(int argc, char** argv) {
46
- fputs(FIRST_COLOR, stdout);
47
45
 
48
-
46
+ int main(int argc, char** argv) {
49
47
  if (argc != 1) {
48
+ fputs(FIRST_COLOR, stdout);
49
+
50
50
  for (int i = 1; i < argc; ++i) {
51
51
  if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
52
52
  fputs(HELP_STR, stdout);
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
57
57
  }
58
58
 
59
59
  putchar('\n');
60
-
61
- goto end;
60
+
61
+ fputs(SECOND_COLOR, stdout);
62
+ return 0;
62
63
  }
64
+
65
+ fputs(FIRST_COLOR, stdout);
63
66
 
64
67
  for (;;) {
65
68
  const int c = getchar();
66
69
 
67
- if (c == EOF) goto end;
68
-
70
+ if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
69
71
  putchar(c);
70
72
  }
71
-
72
-
73
- end:
74
- fputs(SECOND_COLOR, stdout);
75
- return 0;
76
73
  }
77
74
 
78
75
 
Binary file
@@ -42,11 +42,11 @@
42
42
  #define FIRST_COLOR "\e[4m\e[32m"
43
43
  #define SECOND_COLOR "\e[0m\e[0m"
44
44
 
45
- int main(int argc, char** argv) {
46
- fputs(FIRST_COLOR, stdout);
47
45
 
48
-
46
+ int main(int argc, char** argv) {
49
47
  if (argc != 1) {
48
+ fputs(FIRST_COLOR, stdout);
49
+
50
50
  for (int i = 1; i < argc; ++i) {
51
51
  if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
52
52
  fputs(HELP_STR, stdout);
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
57
57
  }
58
58
 
59
59
  putchar('\n');
60
-
61
- goto end;
60
+
61
+ fputs(SECOND_COLOR, stdout);
62
+ return 0;
62
63
  }
64
+
65
+ fputs(FIRST_COLOR, stdout);
63
66
 
64
67
  for (;;) {
65
68
  const int c = getchar();
66
69
 
67
- if (c == EOF) goto end;
68
-
70
+ if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
69
71
  putchar(c);
70
72
  }
71
-
72
-
73
- end:
74
- fputs(SECOND_COLOR, stdout);
75
- return 0;
76
73
  }
77
74
 
78
75
 
Binary file
@@ -42,11 +42,11 @@
42
42
  #define FIRST_COLOR "\e[35m"
43
43
  #define SECOND_COLOR "\e[0m"
44
44
 
45
- int main(int argc, char** argv) {
46
- fputs(FIRST_COLOR, stdout);
47
45
 
48
-
46
+ int main(int argc, char** argv) {
49
47
  if (argc != 1) {
48
+ fputs(FIRST_COLOR, stdout);
49
+
50
50
  for (int i = 1; i < argc; ++i) {
51
51
  if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
52
52
  fputs(HELP_STR, stdout);
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
57
57
  }
58
58
 
59
59
  putchar('\n');
60
-
61
- goto end;
60
+
61
+ fputs(SECOND_COLOR, stdout);
62
+ return 0;
62
63
  }
64
+
65
+ fputs(FIRST_COLOR, stdout);
63
66
 
64
67
  for (;;) {
65
68
  const int c = getchar();
66
69
 
67
- if (c == EOF) goto end;
68
-
70
+ if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
69
71
  putchar(c);
70
72
  }
71
-
72
-
73
- end:
74
- fputs(SECOND_COLOR, stdout);
75
- return 0;
76
73
  }
77
74
 
78
75
 
Binary file
@@ -42,11 +42,11 @@
42
42
  #define FIRST_COLOR "\e[1m\e[35m"
43
43
  #define SECOND_COLOR "\e[0m\e[0m"
44
44
 
45
- int main(int argc, char** argv) {
46
- fputs(FIRST_COLOR, stdout);
47
45
 
48
-
46
+ int main(int argc, char** argv) {
49
47
  if (argc != 1) {
48
+ fputs(FIRST_COLOR, stdout);
49
+
50
50
  for (int i = 1; i < argc; ++i) {
51
51
  if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
52
52
  fputs(HELP_STR, stdout);
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
57
57
  }
58
58
 
59
59
  putchar('\n');
60
-
61
- goto end;
60
+
61
+ fputs(SECOND_COLOR, stdout);
62
+ return 0;
62
63
  }
64
+
65
+ fputs(FIRST_COLOR, stdout);
63
66
 
64
67
  for (;;) {
65
68
  const int c = getchar();
66
69
 
67
- if (c == EOF) goto end;
68
-
70
+ if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
69
71
  putchar(c);
70
72
  }
71
-
72
-
73
- end:
74
- fputs(SECOND_COLOR, stdout);
75
- return 0;
76
73
  }
77
74
 
78
75
 
Binary file
@@ -42,11 +42,11 @@
42
42
  #define FIRST_COLOR "\e[4m\e[1m\e[35m"
43
43
  #define SECOND_COLOR "\e[0m\e[0m\e[0m"
44
44
 
45
- int main(int argc, char** argv) {
46
- fputs(FIRST_COLOR, stdout);
47
45
 
48
-
46
+ int main(int argc, char** argv) {
49
47
  if (argc != 1) {
48
+ fputs(FIRST_COLOR, stdout);
49
+
50
50
  for (int i = 1; i < argc; ++i) {
51
51
  if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
52
52
  fputs(HELP_STR, stdout);
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
57
57
  }
58
58
 
59
59
  putchar('\n');
60
-
61
- goto end;
60
+
61
+ fputs(SECOND_COLOR, stdout);
62
+ return 0;
62
63
  }
64
+
65
+ fputs(FIRST_COLOR, stdout);
63
66
 
64
67
  for (;;) {
65
68
  const int c = getchar();
66
69
 
67
- if (c == EOF) goto end;
68
-
70
+ if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
69
71
  putchar(c);
70
72
  }
71
-
72
-
73
- end:
74
- fputs(SECOND_COLOR, stdout);
75
- return 0;
76
73
  }
77
74
 
78
75
 
Binary file
@@ -42,11 +42,11 @@
42
42
  #define FIRST_COLOR "\e[4m\e[35m"
43
43
  #define SECOND_COLOR "\e[0m\e[0m"
44
44
 
45
- int main(int argc, char** argv) {
46
- fputs(FIRST_COLOR, stdout);
47
45
 
48
-
46
+ int main(int argc, char** argv) {
49
47
  if (argc != 1) {
48
+ fputs(FIRST_COLOR, stdout);
49
+
50
50
  for (int i = 1; i < argc; ++i) {
51
51
  if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
52
52
  fputs(HELP_STR, stdout);
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
57
57
  }
58
58
 
59
59
  putchar('\n');
60
-
61
- goto end;
60
+
61
+ fputs(SECOND_COLOR, stdout);
62
+ return 0;
62
63
  }
64
+
65
+ fputs(FIRST_COLOR, stdout);
63
66
 
64
67
  for (;;) {
65
68
  const int c = getchar();
66
69
 
67
- if (c == EOF) goto end;
68
-
70
+ if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
69
71
  putchar(c);
70
72
  }
71
-
72
-
73
- end:
74
- fputs(SECOND_COLOR, stdout);
75
- return 0;
76
73
  }
77
74
 
78
75
 
data/src/color_tools/red CHANGED
Binary file