How can I increase the array size with malloc?

后端 未结 0 1546
无人及你
无人及你 2020-12-30 04:17

I tried to make a function that add a member in an array of struct and then increase its dimension.

void addMember(id **list, size_t *size)
{
    (*size)++;
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题