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

Gentlemen, choose your weapons.

Name: Anonymous 2007-12-26 8:29

http://en.wikipedia.org/wiki/Indent_style

I pick: Allman style.

Downside: Proprietary AIDS -
>This style is used by default in Microsoft Visual Studio 2005 and Apple's Xcode.

Name: Anonymous 2007-12-26 13:05


int function(listhead_t *list)
{
    int sum = 0;
    for(listhead_t *cur = list->next;
        cur != list;
        cur = cur->next)
    {
        struct realtype *r = (struct realtype *)cur;
        for(int i=0; i<5; i++) sum += r->values[i];
        if(sum & 1) {
            printf("it's odd, yeah! %d\n", sum);
            break;
        }
    }
    return sum;
}

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