|
|
@ -110,6 +110,9 @@ void tabcpy(int tabS[], int tabD[], int tlogi){
|
|
|
|
//Listes chainées
|
|
|
|
//Listes chainées
|
|
|
|
int existeDep(MaillonDep* liste, char* dep){
|
|
|
|
int existeDep(MaillonDep* liste, char* dep){
|
|
|
|
MaillonDep* m=liste;
|
|
|
|
MaillonDep* m=liste;
|
|
|
|
|
|
|
|
if(!strcmp(m->departement,dep)){
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
while(m->suivant!=NULL){
|
|
|
|
while(m->suivant!=NULL){
|
|
|
|
printf("%s, %s\n",m->departement,dep);
|
|
|
|
printf("%s, %s\n",m->departement,dep);
|
|
|
|
if(!strcmp(m->departement,dep)){
|
|
|
|
if(!strcmp(m->departement,dep)){
|
|
|
|