You're right, found ith ere: Cprogramming.com FAQ > Accessing a directory and all the files within it
Type: Posts; User: samdomville
You're right, found ith ere: Cprogramming.com FAQ > Accessing a directory and all the files within it
How do I search directories recursively, from my current directory, in C ? Having trouble finding solution online...please help.
I am on Linux, using GCC.
thanks!
void putHex(UINT32 x)
{
printf("0x%x ", x);
}
but could it have to do with something about union and struct in my code instead?
Why yes we are printing with a %x and all the bytes that are displayed are positive status bits, so they are unsigned. Can you please help still?
Hello - I changed my code from my last post:
http://cboard.cprogramming.com/showthread.php?t=109945
so that the struct of bit fields is unionized with a UINT32 word:
#include <stdio.h>
...
thanks for your help. this was my bad because i wasn't connected to the hardware in the correct way...i had never done this before. thanks
GREAT - thanks for your help. I put the semicolon in the right spot.
However, when I run the program I get a segmentation fault. Someone please tell me why - it it because I don't actually have...
Hi - This is a follow up from my last post: http://cboard.cprogramming.com/showthread.php?t=109945
but need help with my code. I would like to test that accessing the HW reg using a struct...
I have never used "union" before. What will union do to the struct?
THANKS for all this amazing information! My boss is convinced that we should move away from the bit fields. I just need to know which method requires LESS memory/space? Unionizing the bitfields, or...
A snippet of my code looks like this:
typedef struct {
unsigned reg1 : 25;
unsigned reg2 : 5;
unsigned reg3 : 2;
I have bit fields in structures to access hw registers. I tested my compiler to see how it reads/writes to the registers and noticed that the compiler is trying to access the registers by bytes. The...
THANKS! it was true that the function somewhere was not doing anything....fixed :)
Hello - I checked the FAQ/searched site but didn't find anything about this...
After compilation, I get a warning - warning: empty body in an if-statement but if I look at the if statement, it is...