Hello,
can sombody explain me how do get a filesize using gnu C.
getfilesize() does not seem to be present...
Grts
User Profile
Collapse
-
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);... -
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...
No activity results to display
Show More
Leave a comment: