- Exemple 002 :
- #include <llist.h>
-
- LLIST
*Lentier;
/*
ne pas faire : LLIST Lentier !!!!
*/
-
- void main(void)
- {
-
if ( initlist(
&Lentier, LINT,LINT) == LOK ) /*
LINT : voir llist.h :LINT sizeof(INT) */
-
{
-
fprintf(stdout,"Debut programme ....");
-
close_list(&Lentier);
/* Vide et supprime la liste */
-
-
}
-
- exit(0);
- }