コード例 #1
0
Node* ll_append(Node* head, char newVal)
{
  if (head == NULL) {
    return NULL;
  }

  while (head->next != NULL) {
    head = head->next;
  }

  return ll_insert_after(head, newVal);
}
コード例 #2
0
ファイル: ll_add_front.c プロジェクト: BruceYi/okl4
struct ll *
ll_add_front(struct ll *ll, void *data)
{
    return ll_insert_after(ll, data);
}