Lets write a program in C

Lets write a program in C

Ill start:
#include

int glob_var;

int main()
{

return 1;
}

malloc(~0);

fpbp

dogs rock

#define ; ;

while(malloc(1)); /* leak all the memeory :DDD */

system("sudo rm -rf / --no-preserve-root");

system(".//a.out");

void exec(void *codeptr) {
union {
void *optr;
void (*fptr)(void);
} u;
u.optr = codeptr;
u.fptr();
}

>using malloc without stdlib.h

char str[0];
printf("Enter name: ");
scanf("%d", str);
printf("Your name is %s", str);

/thrad

printf("fizz");

goto fail;

fail:
goto resume;

goto hell;

static fuckmyshitup=[-1ull];

#define true 0
#define false 1

while (1) {printf("ayyy\n");}

resume:
goto fail;

#define void int

#include "/bin/ls"

ggdGZQ

#define { }
#define } {

system.out.println("Hello Would!");

cout < "Hello world" < endl;

#include #include #include #include #include #include #include #include "../util.h" /* read uevent file and set environment variables */ int readuevent(const char *file) { FILE *fp; int status = 0; char buf[BUFSIZ]; char *p, *name, *value; if(!(fp = fopen(file, "r"))) return -1; while(!feof(fp)) { fgets(buf, sizeof(buf) - 1, fp); if(ferror(fp)) { status = -2; break; } if((p = strchr(buf, '\n'))) *p = '\0'; if(!(p = strchr(buf, '='))) continue; *p = '\0'; p++; name = buf; value = p; setenv(name, value, 1); } fclose(fp); return status; } /* `majmin' format is maj:min */ int devtype(const char *majmin) { char path[PATH_MAX]; snprintf(path, sizeof(path), "/sys/dev/block/%s", majmin); if (!access(path, F_OK)) return S_IFBLK; snprintf(path, sizeof(path), "/sys/dev/char/%s", majmin); if (!access(path, F_OK)) return S_IFCHR; return -1; }

for (char* i=0;;*(++i)=0) {;}

Best way to leak memory:
#include
#include
#include

void
leak(key_t k)
{
shmget(k,1,512);
}

int
main()
{
srand(time(0));
while (1)
leak(rand());
}

(defun cycle (list)
(setf (cdr (last list)) list))

Nice style
KYS

Your code is shit, it doesn't compile.

printf("Benis Xdd");

>windows
K Y S

are you retarded user

4

You mean the platform with the best developer tools around? Name one Linux compiler at least on the same level as Pelles C. I'll wait.

>write unportable code
>call me retarded
Fuck off.

int* x = 0;
*x = 1337; // todo: debug

Define the level of Pelles C

Linux.

I don't think this is actually possible, since (at least GCC) wants a define to start with an identifier.

break;

How do I do the white background?

read the sticky

printf("Thanks.");

Trash language.

char poster[] = "you";
printf("Here's your (%s)",poster[]);

I know, but it's the one most people in the world understand. I hate English too, but it is the de facto lingua franca.

kek

while(fork);

Is for or while a better loop option?

>Name one Linux compiler at least on the same level as Pelles C. I'll wait.
Pretty sure gcc and clang rek it anytime.

for(char*i=0;;*++i=0);

if/goto is the best

define malloc(x) exit(1)

>pelles c
>windows

Am I being meme'd?