Calculating malloc size of a tagged union (without over-allocating)

后端 未结 0 1468
说谎
说谎 2021-01-14 10:37

Let\'s say I have the following structure:

typedef struct MyObject {
    char* tag;
    union {
        BigObject b;     // imagine this is 5MB
        SmallO         


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