int main()
{
  struct AddressList *root;/* rootをNULLに設定 */
struct Address addr[10];

insert( root , addr[1] , 1);
  insert( root , addr[2] , 0);
showList( root ); /* リストを表示する関数 */
return(0);
}

struct AddressList *insert(struct AddressList *root, struct Address ad, int n){
struct AddressList *current;/* 現在のポインタ位置 */
struct AddressList *new;/* 新ノード */
int i;/* ループカウンタ */

current = root;/* 現在地をルートに設定 */
new = (struct AddressList *)malloc(sizeof(struct AddressList));/* 新しいノードのメモリ確保 */
new->addr = ad;

new->next = root;
root = new;

return(NULL);
}