Search:

Type: Posts; User: samdomville

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    3,995

    You're right, found ith ere: Cprogramming.com FAQ...

    You're right, found ith ere: Cprogramming.com FAQ > Accessing a directory and all the files within it
  2. Replies
    2
    Views
    3,995

    Recursively search for a file.

    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!
  3. void putHex(UINT32 x) { printf("0x%x ", x);...

    void putHex(UINT32 x)
    {
    printf("0x%x ", x);
    }


    but could it have to do with something about union and struct in my code instead?
  4. Why yes we are printing with a %x and all the...

    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?
  5. Accessing bit fields using a union problem.

    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>

    ...
  6. thanks for your help. this was my bad because i...

    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
  7. GREAT - thanks for your help. I put the semicolon...

    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...
  8. Accessing HW registers using bit fields and UINT32

    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...
  9. I have never used "union" before. What will union...

    I have never used "union" before. What will union do to the struct?
  10. THANKS for all this amazing information! My boss...

    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...
  11. A snippet of my code looks like this: ...

    A snippet of my code looks like this:



    typedef struct {

    unsigned reg1 : 25;
    unsigned reg2 : 5;
    unsigned reg3 : 2;
  12. How do I force my compiler to access HW registers as 32 bit instead of bytes?

    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...
  13. Replies
    2
    Views
    27,124

    THANKS! it was true that the function somewhere...

    THANKS! it was true that the function somewhere was not doing anything....fixed :)
  14. Replies
    2
    Views
    27,124

    warning: empty body in an if-statement ??

    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...
Results 1 to 14 of 14