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

c syntaks

Name: Anonymous 2011-12-17 11:01

what was the easier way to refer to an array's first member other than array[0] ?
i forgot what the symbol was.

Name: Anonymous 2012-01-13 13:50

>>10

You're retarded. The length of the string can be determined, using strlen is pointless.

Also telling the for loop to call it every iteration is butt retarded. Of course you will say it is okay because the compiler will fix your horrible mistake.

Name: Anonymous 2012-01-13 14:17

>>41
You're retarded. The length of the string can be determined, using strlen is pointless.

No, you're the one that is retarded. And I quote the man pages for strlen().

"The strlen() function shall compute the number of bytes in which string s points to, not including the terminating null byte."

And in C, part of the definition of a string is that it must end with '\0'.

Name: Anonymous 2012-01-13 16:35

>>39
If we're optimising, how about this:
main(){fputs("HOW AWESOME?!", stdout);}
or even

section .text
global _start
_start:
mov rax, 0x0a2f474f52502f
push rax
mov rax, 1
mov rdi, rax
mov rsi, rsp
mov rdx, 8
syscall
xor rax,rax
mov rax,60
syscall

Name: Anonymous 2012-01-13 16:51

>>42

Kodak confirmed for being christfag.

Kodak quickly breaks out his man bible in fret to find the definition of strlen, hoping this quote will speak wisdom.

He continues to preach about C strings to finish his defense.

sizeof

Name: Anonymous 2012-01-13 16:58

>>43
section .text
global _start
_start:
mov rax, Numerological_Value_of_Talmud
push rax
mov rax, Nth_Human(Adam)
mov rdi, rax
mov rsi, Kol_Nidre
mov rdx, Talmud_Size
syscall
mov rax, Magic_Kabbalistic_Number
syscall

Name: Anonymous 2012-01-13 23:20

#include <stdio.h>
#include <string.h>

char array[] = "HOW AWESOME?!";

int main() {
    puts(array);
    return 0;
}

OPTIMIZED

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