What does a type followed by _t (underscore-t) represent?

后端 未结 10 681
萌比男神i
萌比男神i 2020-11-22 07:15

This seems like a simple question, but I can\'t find it with the Stack Overflow search or Google. What does a type followed by a _t mean? Such as



        
10条回答
  •  野性不改
    2020-11-22 07:42

    It's a convention used for naming data types, e.g with typedef:

    
    typedef struct {
      char* model;
      int year;
    ...
    } car_t;
    
    

提交回复
热议问题