Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

append to list in c

void Append(Node *head, Node node){
	Node tmp = *head;
    if(*head == NULL) {
    	*head = node;
      	return;
    }
  	while(tmp->next != NULL){
    	tmp = tmp->next;
  	}
  	tmp->next = node;
  	return;
}
 
PREVIOUS NEXT
Tagged: #append #list
ADD COMMENT
Topic
Name
1+6 =