So my teacher gave me slides bout how to build a list(or a node) and i understood the most of it. The problem is that it's not very clear the lexicon of lists.
T_Player* make_player(char* name, char* lastn, T_Ruolo role, int number){
T_Player* player = (T_Player *) malloc(sizeof (T_Player));
assert(player != NULL);
strcpy(player->name, name);
strcpy(player->lastn, lastn);
player->number = number;
player->role = role;
return player;
}
First of all why after T_Player there's the operator * . when i used to make a function i always wrote it like:
int Name_ofFunction(Type variable,Type Variable2); //random prototype
now the * operator cofuses me. IT's used to point to something . What does that point to ? 'Couse after the* there's the name of the function,which is not a variable. So why that * is there whats the use for ?