This commit is contained in:
Lukian LEIZOUR 2023-11-26 22:16:14 +01:00
parent 6c8e100c6c
commit 555dcd39b7
6 changed files with 113 additions and 3 deletions

View file

@ -77,4 +77,14 @@ void saveListeners(ptListener listenerChain) {
px = px -> next;
}
fclose(file);
}
void saveRelations(ptConf confChain) {
FILE *file = fopen("./data/relations", "w");
ptListener px = listenerChain;
while(px -> next != NULL){
fprintf(file,"%d,%s,%d,%d\n",px -> id,px -> name,px -> age,px -> level);
px = px -> next;
}
fclose(file);
}