Search:

Type: Posts; User: legendbb

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    7,461

    Great thanks!

    Great thanks!
  2. Replies
    6
    Views
    7,461

    Thanks for comments, with all your inputs. I...

    Thanks for comments, with all your inputs. I think I got to "uninitialized pointer vs NULL pointer", I was expecting pVar being uninitialized not NULL. The mistake is to assign the uninitialized into...
  3. Replies
    6
    Views
    7,461

    Pointer to uninitialized pointer, CRASH?

    Dear all,

    I'm troubleshooting an ARM-A53 baremetal embedded system code. There is no memory management unit.

    While the following code 100% certain generates a "synchronous abort".



    int...
  4. Iterate various type Struct member

    Hi, Gurus,

    Attempting to use variable to access struct member. Couldn't imagining it's doable by using name reference. But address offset works. The last thing has to be variable is the data type....
  5. Replies
    6
    Views
    2,506

    Great thanks to all comment, I give up this idea.

    Great thanks to all comment, I give up this idea.
  6. Replies
    6
    Views
    2,506

    Great thanks to all prompt comments, I am...

    Great thanks to all prompt comments,

    I am trying to do something like this: a enum type has "A" elements, naming of the elements doesn't really matter, reason to choose "A_#" is for possible loop...
  7. Replies
    6
    Views
    2,506

    loop control in macro?

    Hi, Gurus,

    Pure C, I am trying to define a enum type with variable number of elements, controlled by macro.

    for example


    #define A 2

    typdef enum
  8. Replies
    8
    Views
    16,171

    Thanks a lot for prompt reply, I could actually...

    Thanks a lot for prompt reply, I could actually get it going.

    Also wondering if there is a way to define such data structure by using pointers. So I don't have to actually deal with individual...
  9. Replies
    8
    Views
    16,171

    Array of Arrays (possible in C)?

    Believe everything is possible in C.

    Want to do an array of arrays:
    each element in the top level array is same in size.

    For example:

    top_array[0] = char array_element[10];
    top_array[1] =...
Results 1 to 9 of 9