[ create a new paste ] login | about

Link: http://codepad.org/AoezYq6A    [ raw code | output | fork ]

C, pasted on Nov 11:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
void main(void){
unsigned int buff32;
int i, buff = 0;
int datalength =4;
long oldval = 0;
long long counter = 0;

    for (i = 0; i <35; i++){
        //buff++;
        //buff &= 0x0F;
        //buff32 = 1L << (datalength - 1);
        //buff32 = (buff ^ buff32) - buff32;
        //counter += (buff32 - oldval);
        //oldval = counter;
        printf("counter = %i i = %i\n", counter, i);
    }
}


Output:
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0
counter = 0 i = 0


Create a new paste based on this one


Comments: