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

Tabs VS Spaces

Name: Anonymous 2009-03-10 22:42

Which do you prefer in your code?
Personally I like tabs more but they're misused for formatting instead of indentation by many which is annoying and kind of defeats the purpose.

Name: Anonymous 2009-03-11 14:20

>>26
That's not even K&R, because K&R still put functions' braces on separate lines.


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

int main(int argc, char *argv[])
{ // <-- THIS IS ALWAYS THE RIGHT WAY, FAGGOTS.
    int i;
    size_t arg_len;

    for(i = 0, arg_len = 0; i < argc; ++i) { // <-- THIS IS OK.
        printf("%i: %s\n", i, argv[i]);
        arg_len += strlen(argv[i]);
    }

    printf("Length of arguments: %zu\n", arg_len);
    return 0;
}

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