44: { /* add at tail */ 45: p->next = NULL; 46: if (NULL != tail) 47: tail->next = p; 48: else 49: head = p; 50: tail = p; 51: }
tailに追加