In C how do you Malloc each field in a struct

后端 未结 0 1928
囚心锁ツ
囚心锁ツ 2021-01-21 08:32

I have a struct like this

struct MusicInfo{

char *genre; char *title: };

How do I malloc each field in main?

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