- Exemple 007 :
- #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,"Taille de la clef : %d = LINT ", GetlenKey(&Lentier)
, LINT );
- close_list(&Lentier);
- }
- else
- fprintf(stdout,"Erreur
initialisation liste !!");
-
- exit(0);
- }
-