Example #1
0
int	__history(char **args, t_utils *utils)
{
  if (match(args[1], "-c") || match(args[1], "--clear"))
    remove_history(&(utils->history));
  else
    print_liste((t_base *)utils->history);
  return (EXIT_SUCCESS);
}
Example #2
0
void afficheEtatR(echangeur* current){

	    printf("\nJe suis l'echangeur %d, de TID : %ld \n j'ai %d véhicules \n",current->ID,(long) pthread_self(),current->nbV);
    for(int i=0;i<4;++i){
	    print_liste(&(current->file_attente[i]));
    }
    fflush(stdout);
}