#ifndef _LIST_H
#define _LIST_H
struct listrec;
typedef struct listrec *list;
list listinit( );
void print( list L );
void insert( list L, int abc );
void deleteall( list L );
#endif
struct listrec{
int elem;
list next;
list prev;
};
#include
#include"list.h"
int main( )
{
int i;
list listone;
listone = listinit( );
for( i = 0; i < 10; i++ )
insert(listone,2*i + 1 );
print( listone );
delete( listone );
printf( "\n" );
print( listone );
deleteall(listone );
return 0;
}