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: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-13 8:17

>>35
Thats not exactly what i had in mind, i don't make it a function, its just a macro.
#define MAX_SIZE 4096
#define ARRAY_NULL 2147483647
#define ERROR
#define intarr(X) calloc(MAX_SIZE,sizeof(int))
#define ADD(array,elm) ;array##_real_size++;array[array##_real_size]=elm;
#define DEL(array,el_num) ;array[el_num]=ARRAY_NULL;
#define GET(array,el_num) el_num>array##_real_size?ARRAY_NULL:array[el_num]
#define ERROR(val,x) if(val==ARRAY_NULL){puts(x);}

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