commit
This commit is contained in:
parent
6c8e100c6c
commit
555dcd39b7
6 changed files with 113 additions and 3 deletions
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue