Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

"foo"=="foo"? OH SHI-

Name: Anonymous 2011-12-12 14:07


haxus_the_great@leetbawx: cat anus.c
int main()
{
  if ("foo" == "foo") {
    return 1;
  } else {
    return 0;
  }
}
haxus_the_great@leetbawx: gcc anus.c -o anus
haxus_the_great@leetbawx: ./anus
haxus_the_great@leetbawx: echo $?
1
haxus_the_great@leetbawx:

U mad? U jelly? Come at me bro.

Name: Anonymous 2011-12-13 8:03

>>34
[code]
#include <void.h>
u4 MAX_SIZE = 10;
u4 REAL_SIZE = 0;
u4 EMPTY = 0;
void del(int * a, u4 i) {
  a[i] = NULL;
  EMPTY = i;
}
void add(int * a, u4 v) {
  if (REAL_SIZE + 10 > MAX_SIZE) {
    MAX_SIZE += 10;
    a = realloc(a, MAX_SIZE);
  }
  a[EMPTY]=v;
  REAL_SIZE++;
  while (a[++EMPTY]);
}
int get(int * a, int accessed_element) {
  if ((accessed_element) > MAX_SIZE){; ERROR("ARRAY ACCESS INVALID");}
  return a[accessed_element];
}
STDMAIN
  int * a = calloc(MAX_SIZE, sizeof(int));
  add(a, 24);
  del(a, 0);
  if (*get(a, 0)) puts("FV wins");
STDEND

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List