So why it does work with 0x1FFFFFFFF?
And why BITMASK(32) works?
the 32 is suposed to be masked by the 5 bits too no?
Type: Posts; User: Sink0
So why it does work with 0x1FFFFFFFF?
And why BITMASK(32) works?
the 32 is suposed to be masked by the 5 bits too no?
Oh ok thats explain everything now.. yea i was getting that warning but i was ignoring the equal case.. so i cant shift a 32bits variable 32 times...
using 0x1FFFFFFFF works but i dont know if...
Nop it does not work.. i did copy and paste your code and got same result... do you think thats some problem with my mingw? Anyway i cant understand why should i have this behavior x is just the...
Could not get the point..
What is the difference of
uint8_t val = 32;
uint32_t ret;
ret = BITMASK(val); //return 0
ret = BITMASK(32); // return 0xFFFFFFFF
Hi, i have a code where i defined:
#define FULLMASK 0xFFFFFFFF
#define BITMASK(x) (~(FULLMASK<<x))
If i use an uint8_t variable with value 32 the macro returns 0, but if i write...
Hi, i have a question about function pointer. I am implementing a structure inside a microcontroller's program, to deal with some programed events. On my function pointer definition i am using as an...
I am slowly programing here haha. Its my mother's birthday today, so no time to work. Just one advice. I am going to make a GUI for the program (i am going to try as i dont have any experince with...
I was wondering if that would not make use of too much memory, but i guess there is no option. Thank you!
Hmm i was wondering .. how can i "insert" lines on the begin of a file? If i write on a file from the begin it will start overwriting what is already on the file...
Thank you!
Hi... i was going to make myself a program to add headers to .c and .h files, but as i dont want to reinvent the wheel, is there such program on the intertet? As header i mean, a comment with the...
Wow, i would never expect that a compiler it is writen on a previous version of its own language. .. very weird. .... well thank you about the answer!
Any other comments are still accepted!!
...
I could not find any better topic to ask this. This question is generic and not only related to C programming. If it is not suited to this forum please feel free to remove it.
My question is...
Oh, ok i will make use of that!! Thank you!
Thank you!! It worked You helped a lot!! Actually, it did not complain haha. But thank you.
And laserlight made everything more clear to me!!
Cya
Hmmm .. thats true.. so i would just have to make like this?Yea thats makes sense...
int f1(char *a)
{
return f2(a);
}
Hi, i just want to make sure, Is this correct?
int f1(char *a)
{
return f2(&a);
}
int f2(char *a)
{