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-12 14:11

>>1
yeah this is how you compare strings in C... what's your point OP?

Name: Anonymous 2011-12-12 14:18

>>1
Thats a common mistake, strings are handled as pointers to char array which need to be processed by strcmp(str1,str2)

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