mirror of
https://gitlab.com/klmp200/LO41.git
synced 2025-07-11 20:29:24 +00:00
GCC YOU FAGGOT !
This commit is contained in:
@ -11,7 +11,7 @@ GETTER(Resident, int, apartment_floor);
|
||||
|
||||
void * runnable_Resident(void * void_this){
|
||||
Resident * this = (Resident*) void_this;
|
||||
printf("Je suis le resident %s et je suis a l'etage %d en direction de l'etage %d\n",
|
||||
printf("Je suis le RESIDENT %s et je suis a l'etage %d en direction de l'etage %d\n",
|
||||
this->name, this->apartment_floor, this->destination);
|
||||
return NULL;
|
||||
}
|
||||
@ -23,7 +23,7 @@ void _free__Resident(THIS(Resident)){
|
||||
}
|
||||
|
||||
Resident *_init_Resident(int id, char* name, int apartment_floor, int destination){
|
||||
/* If the destination is the same as the apartment_floor or negative, the resident will not move */
|
||||
/* If the destination is the same as the apartment_floor or negative, the RESIDENT will not move */
|
||||
Resident * new_resident = malloc_or_die(sizeof(Resident));
|
||||
new_resident->name = strdup(name);
|
||||
new_resident->id = id;
|
||||
|
Reference in New Issue
Block a user