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

A Simple Counter. Feedback Welcomed!

Name: Anonymous 2013-05-27 19:58

Please critique my code.


/****************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
typedef unsigned long long SUPER_INTEGER;
int main(int argc, char* argv[])
{
    SUPER_INTEGER Counter = 0;
    time_t Current = time(0);
   
    SUPER_INTEGER *Epochs = (SUPER_INTEGER*)malloc(sizeof(SUPER_INTEGER)*64);
    time_t *times = (time_t*)malloc(sizeof(time_t)*64);

    for(int i = 64;i < 65;i++) Epochs[i] = 0;
    for(int i = 64;i < 65;i++) times[i] = 0;
    Epochs[0] = 1;
    for(int i = 1; i < 64; i++)
    {
        Epochs[i] = (Epochs[i-1] << 1);
    }
    SUPER_INTEGER Test = 0;
    while(1==1)
    {
        Counter++;
        for(int i = 0; i < 64; i++)
        {
            Test = Counter ^ Epochs[i];
            if(!Test) printf("\nReached 2^%d (=%llu), about %llu seconds after starting!",i,Epochs[i],time(0)-Current);
        }
        Test = Counter ^ Epochs[63];
        if(!Test) break;
    }
    return 0;
}

Name: Anonymous 2013-05-27 20:17

It's shit.

Name: Anonymous 2013-05-27 20:29

>>2
Fuck you.

Name: Anonymous 2013-05-27 20:48

for(int i = 64;i < 65;i++) Epochs[i] = 0;
memset() and bzero(), nigger.

Name: Anonymous 2013-05-27 20:52

Wait a fucking minute.
for(int i = 64;i < 65;i++)
What the fuck are you doing? Go back to /g/.

Name: Anonymous 2013-05-27 21:05

now write it in ruby

Name: Anonymous 2013-05-28 0:33

>>4
U MENA calloc()?

Name: Anonymous 2013-05-28 4:18

for(int i = 64;i < 65;i++)
i = 64
i < 65

LE LeLE EPICCCCCCCCCCCCC LLLLLLLLLLLLLLLLLLLLLlLELLLLLLLLLLLLLLLLLLLLLL XDDDDDD
LE/G/ROIN EGIN EGGZ EGGSD
ROFLFLFLFLFl
FUCKING LEL FUCKING EPIC

Name: L. A. Calculus !!wKyoNUUHDOmjW7I 2013-05-28 7:34

>>1
CHECK DA RETURN VALUE OF malloc AND DON'T MAKE UR RETOIDED ASSUMPTIONS ABOUT time_t. USE difftime INSTEAD U UNCIVILISED, BARBARIC CRETIN. DAT MEANS USING %f IN UR CALL TO printf TOO.

>>4
bzero()
GET OUT OF HERE YA FUCKIN FOSSIL

WEN DA FUCK ARE U RETOIDS GONNA REED DA FUCKIN STANDARD? HUH?

Name: Anonymous 2013-05-28 8:08

Just do meth. Get addicted, sell me your lifes belongings for pennies on the dollar for more meth, die in a gutter somewhere or end up in jail, sleeping pattern=changed!

Name: Epochs 2013-05-28 8:31

Epochs

Name: Anonymous 2013-05-28 8:52

>>9
But bzero is just memset with a 0 as an argument, faggot.

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