I am having trouble with elements not being added to my linked list. I have been able to varify that the char string is being scanned in main() properly as well as being copied over to the temp node however this is not being added to the linked list.

```
struct node{
    char string[MAX_STRING_LENGTH];
    node *next;
};

void insertAsFirstElement(node *head, node *last, char string[MAX_STRING_LENGTH])
{

    //create temporary node
    node *temp = new node;

    printf("The temp's string before copy is %s.\n", temp->string);
    //this is the string copy from the user to the temp
    strcpy(temp->string, string);

    printf("The temp's string is %s.\n", temp->string);

    //set the next pointer to NULL (points to nothing)
    temp->next = NULL;
    //set first value in list to temp
    head = temp;
    //set last value to temp
    last = temp;
}

```