Skip to content

Instantly share code, notes, and snippets.

@cpetzold
Created April 21, 2010 06:52
Show Gist options
  • Save cpetzold/373515 to your computer and use it in GitHub Desktop.
Save cpetzold/373515 to your computer and use it in GitHub Desktop.
RopeNode* Rope::AddNode(RopeNode* node) {
if (this->head == NULL) {
this->head = node;
this->tail = node;
} else {
this->tail->SetNext(node);
this->tail = node;
}
return this->tail;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment