how would you qsort() a struct like this?

后端 未结 0 1246
情话喂你
情话喂你 2021-02-20 10:39

im trying to sort this array of structby name. this is what i tried.

qsort( cards, num_entries, sizeof(card_t *), comparator);

struct

{         


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