Search:

Type: Posts; User: BMintern

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    6,423

    Thanks a lot. I guess that's about as flexible as...

    Thanks a lot. I guess that's about as flexible as it gets with C. It sure would be nice to be able to combine the two somehow.
  2. Replies
    4
    Views
    6,423

    Thanks for the tip. It's helpful to know that if...

    Thanks for the tip. It's helpful to know that if worst comes to worst, I can do it that way. The only qualms I have are

    1. Some of the arrays may be up to 8 or so items long, while the majority...
  3. Replies
    4
    Views
    6,423

    Syntax for constant array of array pointers

    Is it possible to do something like this in C?


    /* This is a NON-WORKING example. It gives a Segmentation Fault. */

    const size_t *foos[4] = {
    {3, 1, 2, 3},
    {4, 10, 20, 30, 40},
    ...
  4. Replies
    6
    Views
    2,840

    That's a pretty clever solution. Of course, it...

    That's a pretty clever solution. Of course, it would be awesome if the answer was something like "0-4095 is never a valid address", but it's never that easy, is it? :)

    In other words, if I wanted...
  5. Replies
    6
    Views
    2,840

    Thanks for the quick reply. I don't follow...

    Thanks for the quick reply.



    I don't follow this comment. Where am I making this assumption in my example? I ask in earnest in case I'm doing something wrong (other than the hackish solution I...
  6. Replies
    6
    Views
    2,840

    Minimum valid address value

    I would like to know if there is a certain minimum value below which it can be assumed that the address of a pointer does not actually contain information which can be dereferenced by the program....
Results 1 to 6 of 6