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

Wut ? C

Name: Anonymous 2007-11-16 12:09

AviStruct* GetVideoInfo(char*file)
{
    AviStruct* MyVideo = (AviStruct*)s_alloc(sizeof(AviStruct));
    FILE*f = fopen(file,"rb");
    if (f)
    {
        unsigned int dwRate;
        unsigned int dwScale;
        unsigned int dwLength;
        fseek(f,0x84, SEEK_SET );
        fread(&dwRate,4,1,f);
        fseek(f,0x80, SEEK_SET );
        fread(&dwScale,4,1,f);
        fseek(f,0x8C, SEEK_SET );
        fread(&dwLength,4,1,f);
        fseek(f,0x40, SEEK_SET );
        fread(&MyVideo->width,4,1,f);
        fseek(f,0x44, SEEK_SET );
        fread(&MyVideo->height,4,1,f);
        MyVideo->fFps = (float)((float)(dwRate)/(float)(dwScale));
        MyVideo->fDuration = (float)((float)(dwLength)/(float)(MyVideo->fFps));
        return MyVideo;

    }
    return 0x0;
}

Name: Anonymous 2007-11-19 10:39

>>28
That's shitCase, and itsUgly. Also, how the fuck will you tell a function from a variable when it's only one word? Fucking niggers.

>>31
Useless? Nigger! If you capitalize functions to tell them from variables, then what the fuck fuck is? A function? A variable? And don't give me that "verbs are for... while you use..." bullshit, I hate your retarded naming conventions and all the "software engineering" idiots who think programming can be rationalized to that point.

Also, shitCase looks like shit, is harder to transform, etc.

So the bottom line is, UseCamelCase, not shitCase, faggot. You're ugly.

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