Search:

Type: Posts; User: emorrp1

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    2,317

    thanks, I'm looking up how to use malloc() etc....

    thanks, I'm looking up how to use malloc() etc. at the moment. My (current) task is to design a library of functions that a main() written by someone else could call, knowing the function, but not...
  2. Replies
    8
    Views
    2,317

    because I now have it all abstracted enough that...

    because I now have it all abstracted enough that I no longer need to know about the structure of the led class, but I do need to send the port locations of the LEDs as arguments to the function that...
  3. Replies
    8
    Views
    2,317

    thanks for looking at it, tabstop. I read...

    thanks for looking at it, tabstop. I read something somewhere about casting the pointer up to the parent, because it's the first definition in the child, but I'm not used to pointers yet (coming...
  4. Replies
    8
    Views
    2,317

    struct array's inheritance

    Ok, so I know inheritance isn't actually implemented in C, but I've used one of the very common workarounds, and I'd like to know how to pass the "inherited" structure to a function (which is...
  5. Replies
    8
    Views
    3,444

    you're almost right! I tried it, but since you're...

    you're almost right! I tried it, but since you're now dealing with the pointer directly rather than its dereferenced state, you need to also change the '.' to '->'



    maybe not, but...
  6. Replies
    8
    Views
    3,444

    Thank you all very much, this solution works. ...

    Thank you all very much, this solution works. I've not come across the "define all variables at the start" rule before, and also thanks for solving a mysterious "suspicious pointer conversion"...
  7. Replies
    8
    Views
    3,444

    struct member assignment (c-only)

    Hi, I'm now in a job where I have to code in pure C (not C++) and am having trouble adjusting to the differences, hope you can help. As soon as I un-comment any one of the commented lines in the...
Results 1 to 7 of 7