text: #include <stdlib.h>
  #include <memory.h>
  #include "linkedlist.h"
  
  int linkedlist_add_front(s_linkedlist *linked_list, void *element) {
      s_linkedlist_node *node = malloc(sizeof(s_linkedlist_node));
      if (node == NULL) {
          return (LINKEDLIST_RETVAL_FAILURE);
      }
  
      memset(node, 0, sizeof(s_linkedlist_node));
  
      node->element = element;
  
      if (linked_list->head == NULL) {
          linked_list->head = node;
      } else {
          node->next                  = linked_list->head;
          linked_list->head->previous = node;
          linked_list->head           = node;
      }
  
      if (linked_list->tail == NULL) {
          linked_list->tail = node;
      }
  
      linked_list->size += 1;
  
      return (LINKEDLIST_RETVAL_SUCCESS);
  }
  