1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| void lire_sorts(char * ici)
{
char * chemin;
ici=chemin_exe();
chemin=g_build_path (G_DIR_SEPARATOR_S,ici,"fichiers","sorts","sort-clerc.ods",NULL);
sortileges=lire_struct_sort(chemin,CLERC);
if (sortileges==NULL)
{
printf("Surprise : le fichier %s a un problème\n",chemin);
}
free(chemin);
chemin=g_build_path (G_DIR_SEPARATOR_S,ici,"fichiers","sorts","sort-mag.ods",NULL);
sortileges_mag=lire_struct_sort(chemin,MAGICIEN);
if (sortileges==NULL)
{
printf("Surprise : le fichier %s a un problème\n",chemin);
}
free(chemin);
} |
Partager