-
Notifications
You must be signed in to change notification settings - Fork 1
/
interjection.c
57 lines (54 loc) · 2.87 KB
/
interjection.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include <stdio.h>
#include <string.h>
char VER[] = "1.3";
char* GNU = "GNU";
char* Linux = "Linux";
int main(int argc, char *argv[]) {
for (int i = 1; i < argc; ++i) {
if (!strcmp(argv[i], "--version")) {
printf("Stallman Interjection Text Generator %s\n", VER);
printf("Copyright (C) 2021 PQCraft\n");
return 0;
} else if (!strcmp(argv[i], "--help")) {
printf("Usage: interject [options]\n");
printf("Options:\n");
printf(" --help Shows the help screen.\n");
printf(" --version Shows the version info.\n");
printf(" --gnu <text> Changes all occurrences of 'GNU' to <text>.\n");
printf(" --linux <text> Changes all occurrences of 'Linux' to <text>.\n");
return 0;
} else if (!strcmp(argv[i], "--gnu")) {
if (i > argc) {fprintf(stderr, "No value specified for 'GNU'.\n"); return 1;}
++i;
GNU = argv[i];
} else if (!strcmp(argv[i], "--linux")) {
if (i > argc) {fprintf(stderr, "No value specified for 'Linux'.\n"); return 1;}
++i;
Linux = argv[i];
} else {
fprintf(stderr, "Invalid option: %s\n", argv[i]);
return 1;
}
}
printf(
"I'd just like to interject for a moment.\n"
"What you're referring to as %s, is in fact, %s/%s, or as I've recently taken to calling it, %s plus %s.\n"
"%s is not an operating system unto itself, but rather another free component of a fully functioning %s system made useful by the %s corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.\n"
"Many computer users run a modified version of the %s system every day, without realizing it.\n"
"Through a peculiar turn of events, the version of %s which is widely used today is often called \"%s\", and many of its users are not aware that it is basically the %s system, developed by the %s Project.\n"
"There really is a %s, and these people are using it, but it is just a part of the system they use.\n"
"%s is the kernel: the program in the system that allocates the machine's resources to the other programs that you run.\n"
"The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system.\n"
"%s is normally used in combination with the %s operating system: the whole system is basically %s with %s added, or %s/%s.\n"
"All the so-called \"%s\" distributions are really distributions of %s/%s.\n",
Linux, GNU, Linux, GNU, Linux,
Linux, GNU, GNU,
GNU,
GNU, Linux, GNU, GNU,
Linux,
Linux,
Linux, GNU, GNU, Linux, GNU, Linux,
Linux, GNU, Linux
);
return 0;
}