you are viewing a single comment's thread
view the rest of the comments
[–] 10 points 6 months ago

It's rather trivial to translate Python to C:

$ cat << EOF > ./shitpost.c && gcc -O2 -o ./shitpost ./shitpost.c && ./shitpost
#include <stdlib.h>

int main(int argc, char** argv) {
    system("python3 -c \\"print(\\\\\\"Hello, World!\\\\\\")\\"");
    return 0;
}
EOF
Hello, World!

My C is a bit rusty though, sorry.

  • source
  • parent