Red Squirrel
No Lifer
I'm looking at a pthread tutorial as I forgot the syntax to send multiple arguments and I noticed they are declaring a struct like this:
I have never seen this before, why it is declared that way. What's thdata and why typedef? I thought that was for making an alias or something.
Code:
typedef struct str_thdata
{
int thread_no;
char message[100];
} thdata;
I have never seen this before, why it is declared that way. What's thdata and why typedef? I thought that was for making an alias or something.