User Profile

Collapse

Profile Sidebar

Collapse
byenary
byenary
Last Activity: Oct 1 '07, 03:58 PM
Joined: Sep 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • byenary
    started a topic filesize in GNU c
    in C

    filesize in GNU c

    Hello,

    can sombody explain me how do get a filesize using gnu C.
    getfilesize() does not seem to be present...

    Grts
    See more | Go to post

  • byenary
    replied to comparing an array of bits
    in C
    made a little test ap wich does the job
    [code=c]
    #include <stdio.h>

    void show_binary(uns igned short u);
    void show_lastbit(un signed short u);
    unsigned short count_ones(unsi gned short test);

    int main(void)
    {
    unsigned short getal1;
    unsigned short getal2;
    getal1 = 14531;
    getal2 = 14045;
    show_binary(get al1);
    show_binary(get al2);...
    See more | Go to post
    Last edited by sicarie; Sep 24 '07, 01:02 PM. Reason: Code tags

    Leave a comment:


  • byenary
    started a topic comparing an array of bits
    in C

    comparing an array of bits

    Hello
    I have got 2 variabeles in an application the type;
    typedef guint32 data[8]; -> so 256 bits
    Now i have a load of data of this type derrived from fileheaders.
    I want to compare these and get a number of how many bits are set to 1 on the same place.
    So for Ex with 8 bits
    data1 : 00110011
    data2 : 00100010
    This should give me 2 as an answer. I don't really know how to do this i am not...
    See more | Go to post
No activity results to display
Show More
Working...