void
ajouter(cellule** listeP, point npoint) { cellule* aux; aux = (cellule*) malloc(sizeof(cellule)); aux->p = npoint; aux->suivant = (*listeP); (*listeP) = aux; } |
int
main() { cellule* listPoints = NULL; point p1 = {10,11}; point p2 = {34,56}; ajouter(&listPoints,p1); ajouter(&listPoints,p2); } |