#include <stdio.h> 

struct Student;
typedef struct Student *List;

/* the struct of the student information*/
struct Student
{
  char Name[20];
  List Next;
};

/* Destroy the link listS*/
void DeleteList( List L )
{
  List P, Tmp;
  
  P = L->Next;  /* Header assumed */
  L->Next = NULL;
  while( P != NULL )
    {
      Tmp = P->Next;
      free( P );
      P = Tmp;
    }
}

/*print out the link listS*/
void PrintList( List L )
{
  List P;
  P = L->Next;
  while ( P != NULL )
    {
      printf("%8s ", P->Name);
      P = P->Next;
    }
  
}
