Line 3:
Line 3:
{{Userbox code|C}}
{{Userbox code|C}}
{{Userbox code|C++}}
{{Userbox code|C++}}
+
{{Userbox code|PHP}}
+
{{Userbox code|Py}}
{{Userbox dev|Lin}}
{{Userbox dev|Lin}}
{{Userbox developer}}
{{Userbox developer}}
{{Userbox looking}}
{{Userbox looking}}
{{Userbox Trucha|6}}
{{Userbox Trucha|6}}
−
{{Userbox system menu|4.4}}
+
{{Userbox system menu|4.3}}
{{Userbox homebrew channel}}
{{Userbox homebrew channel}}
{{Userbox bootmii}}
{{Userbox bootmii}}
{{Userboxbottom}}
{{Userboxbottom}}
−
Hello, I am Emily Daemon!
−
I am currently looking for something to do. If you have any homebrew app ideas, add them to my [[User talk:Emily Daemon|talk page!]]
+
<syntaxhighlight lang="c">
+
/*
+
* Emily Daemon's WiiBrew user page.
+
* Written in Vim.
+
*/
+
+
#include <stdio.h>
+
#include <stdbool.h>
+
+
#define WEBSITE "https://donut.eu.org/"
+
#define CONTACT "https://donut.eu.org/contact"
+
+
typedef struct {
+
char company[64];
+
char name[128];
+
bool modded;
+
} consoles;
+
+
static consoles myConsoles[] = {
+
{ "Nintendo", "Wii", true },
+
{ "Nintendo", "DSi", true },
+
{ "Nintendo", "Wii U", true },
+
{ "Nintendo", "Switch", false }
+
};
+
+
char *likes[] = {
+
"the Wii",
+
"programming",
+
"programming for the Wii",
+
"graphic design",
+
"video games",
+
NULL
+
};
+
+
char name[64] = "Emily Daemon";
+
+
int main() {
+
int i;
+
size_t arrayLength;
+
+
printf("Hello, WiiBrew!\n\n");
+
printf("My name is %s.\n\n", name);
+
printf("I like:\n");
+
+
for (i = 0; likes[i] != NULL; i++) {
+
printf(" - %s\n", likes[i]);
+
}
+
+
printf("\nMy consoles:\n");
+
arrayLength = sizeof(myConsoles) / sizeof(myConsoles[0]);
+
for (i = 0; i != arrayLength; i++) {
+
printf(" - a%s%s %s\n",
+
(myConsoles[i].modded == true) ? " modded " : " ",
+
myConsoles[i].company,
+
myConsoles[i].name
+
);
+
}
+
+
printf("\nMy website can be found at %s.\n", WEBSITE);
+
printf("Contact information can be found at %s.\n", CONTACT);
+
+
return 0;
+
}
+
</syntaxhighlight>