PDA

View Full Version : What's the meaning of "_t" added in the end of a struct definition?


huzi
21st September 2007, 04:48
typedef struct {
xvid_dec_frame_t dec_frame; //[in:out] input bitstream
xvid_enc_frame_t enc_frame; //[in:out] output bitstream
int dec_stream_eat;
int enc_stream_out;
} xvid_trans_frame_t;


/* XVID_TRANS_TRANSCODE param2 :: optional */
typedef struct
{
xvid_dec_stats_t dec_stats; //[out] decode stats
xvid_enc_stats_t enc_stats; //[out] encode stats

} xvid_trans_stats_t;

what,s the meaning "_t" is added in the end of defination a struct. Maybe mean "typedef"

neuron2
21st September 2007, 05:35
Yes, it's a convention used to indicate a type.