p.enes.lv is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.
This server runs the snac software and there is no automatic sign-up process.
int main()
{
int i = 0;
loop: printf("%d\n", i);
if (i++ == 8) {goto exit;}
goto loop;
exit: return 0;
}
int main()
{
int i = 0;
loop: printf("%d\n", i);
if (i++ == 8){exit(0);}
void (*loop)() = &&loop;
loop();
}
After reflection i ended up going with the latter, that way the user can still do #include <mastodont-cxx/mastodont.h>, and it wont allow for weird cases like #include <cxx/mastodont.h>. I like to think of them as separate, anyway
what did i do wrong????
#include <stdio.h>
#include <string.h>
void recursePrunePattern(char **thing, char *pattern) {
char *found = strstr(thing[0], pattern);
if (found == NULL)
return;
for (int i = 0; found[i] != '\n'; i++)
found[i] = ' ';
recursePrunePattern(&found, pattern);
}
int main() {
char *str = "hello world // poop\n";
recursePrunePattern(&str, "//");
puts(str);
}
#include <stdio.h>int main()
{
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
puts("Little endian");
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
puts("Big endian");
#else
printf("ayo wtf %d\n", __BYTE_ORDER__);
#endif
printf("%#b", 'twinspin6');
return 0;
}
main.c: In function ‘main’:
main.c:12:19: warning: character constant too long for its type
12 | printf("%#b", 'twinspin6');
| ^~~~~~~~~~~
Little endian
0b1110000011010010110111000110110
#include <stdbool.h> or add a -std=gnu23 (or -std=gnu2x depending on how old your compiler is).#includeing the specific headers, you don't need to support that shit ¯\_(ツ)_/¯