Commit 1baf6dd5 authored by Liam E. Roeth's avatar Liam E. Roeth

lowercase_function_names

parent 749998c9
......@@ -93,16 +93,16 @@ NODE *construct_list(datatype list[], int size){
}
int add_to_end(NODE *head, datatype new_data){
return Insert_Node(head, -1, new_data);
return insert_node(head, -1, new_data);
}
int Insert_Node(NODE *head, int pos, datatype new_data){
int insert_node(NODE *head, int pos, datatype new_data){
if(head==NULL)
return 1;
if(pos!=0)
return Insert_Node_After(traverse(head,pos-1),new_data);
return insert_node_after(traverse(head,pos-1),new_data);
else{
int out = Insert_Node_After(head,head->data);
int out = insert_node_after(head,head->data);
if(out>0)
return out;
head->data = new_data;
......@@ -110,7 +110,7 @@ int Insert_Node(NODE *head, int pos, datatype new_data){
return 0;
}
int Insert_Node_After(NODE *head, datatype data){
int insert_node_after(NODE *head, datatype data){
if(head==NULL)
return 1;
NODE *new = construct(data, head->next);
......@@ -121,7 +121,7 @@ int Insert_Node_After(NODE *head, datatype data){
}
int Length(NODE *head){
int length(NODE *head){
if(head==NULL)
return 0;
int i=1;
......
......@@ -18,9 +18,9 @@ NODE* search(int n, NODE *head);
NODE *construct(datatype data, NODE *next);
NODE *traverse(NODE *head, int pos);
int delete_node_after(NODE *head);
NODE *Construct_List(datatype list[], int size);
int Add_To_End(NODE *head, datatype new_data);
int Insert_Node(NODE *head, int pos, datatype new_data);
int Insert_Node_After(NODE *head, datatype data);
NODE *Search(NODE *head, datatype data);
int Length(NODE *head);
NODE *construct_list(datatype list[], int size);
int add_to_end(NODE *head, datatype new_data);
int insert_node(NODE *head, int pos, datatype new_data);
int insert_node_after(NODE *head, datatype data);
NODE *search(NODE *head, datatype data);
int length(NODE *head);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment