#include <stdlib.h>
#include <stdio.h>
-void afficher(int n, char lettre)
+static void afficher(int n, char lettre)
{
int j;
for (j = 1; j < n; j++) {
}
}
-void *threadA(void *inutilise)
+static void *threadA(void *inutilise)
{
afficher(100, 'A');
printf("\n Fin du thread A\n");
pthread_exit(NULL);
}
-void *threadC(void *inutilise)
+static void *threadC(void *inutilise)
{
afficher(150, 'C');
printf("\n Fin du thread C\n");
pthread_exit(NULL);
}
-void *threadB(void *inutilise)
+static void *threadB(void *inutilise)
{
pthread_t thC;
pthread_create(&thC, NULL, threadC, NULL);