rvcos/src/Deque.c
// Function to return size of deque
Function to return size of deque
Function to return size of deque
uint32_t size(volatile Deque *d) {
  uint32_t s = 0;
  struct Node *n = d->head;
  while (n != NULL) {
    s++;
    n = n->next;
  }
  return s;
}
uint32_t size ( volatile Deque * d ) { uint32_t s = 0 ; struct Node * n = d -> head ; while ( n != NULL ) { s ++ ; n = n -> next ; } return s ; }
Function to return size of deque
Function to return size of deque
// free(n); // RVCMemoryPoolDeallocate(0, n);