commit
This commit is contained in:
parent
7450b610cb
commit
e704df4a8d
7 changed files with 81 additions and 63 deletions
10
conf.c
10
conf.c
|
@ -4,7 +4,7 @@
|
|||
#include "conf.h"
|
||||
|
||||
ptConf newConfChain() {
|
||||
ptConf confChain = (ptConf) malloc(sizeof(ptConf));
|
||||
ptConf confChain = (ptConf) malloc(sizeof(tConf));
|
||||
|
||||
confChain -> next = NULL;
|
||||
|
||||
|
@ -24,12 +24,12 @@ void addConf(ptConf confChainStart, char title[], char speaker[], int day, int m
|
|||
strcpy(px -> title, title);
|
||||
strcpy(px -> speaker, speaker);
|
||||
// ajouter le builder de liste de participants
|
||||
px -> next = (ptConf) malloc(sizeof(ptConf));
|
||||
px -> next = (ptConf) malloc(sizeof(tConf));
|
||||
px -> next -> next = NULL;
|
||||
}
|
||||
|
||||
ptListener newListenerChain() {
|
||||
ptListener listenerChain = (ptListener) malloc(sizeof(ptListener));
|
||||
ptListener listenerChain = (ptListener) malloc(sizeof(tListener));
|
||||
|
||||
listenerChain -> prev = NULL;
|
||||
listenerChain -> next = NULL;
|
||||
|
@ -48,7 +48,7 @@ void addListener(ptListener listenerChain, char name[], int age, int level) {
|
|||
px -> age = age;
|
||||
px -> level = level;
|
||||
// ajouter la liste de conférences
|
||||
px -> next = (ptListener) malloc(sizeof(ptListener));
|
||||
px -> next = (ptListener) malloc(sizeof(tListener));
|
||||
px -> next -> next = NULL;
|
||||
px -> next -> prev = px;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue