Hey guys i have a problem im trying to make a program that inserts a node but when im calling the function in my main i get an implicit declaration error.
Any suggestions?
Code:#include <stdlib.h>
#include <stdio.h>
typedef struct ListNode * ListNodePtr;
typedef struct ListNode
{
int data;
ListNodePtr * next;
}ListNode;
int main (void)
{
int data;
ListNodePtr root = NULL;
if(!ListInsert(root, data))
{
printf("Insertion of node falied\n");
}
return 0;
}
int ListInsert(ListNodePtr *head, int data)
{
return 0;
}