Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Void Type Array
#1
I'm having trouble declaring an array of void data items for my DA struct (and by extension my CDA struct), can anyone help me out?
Reply
#2
Code:
struct da
   {
   ....
   void **array;
   ...
   }

DA *newDA(void)
    {
    ...
    items-> array = malloc(sizeof(void *) * items->capacity);
    assert(p->array != 0);
    ...
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)