src/tinyoq.c
//works only if new size is >= old size
works only if new size is >= old size
works only if new size is > = old size
void
toq_resize (PTINYOQUEUE toq, int size)
{
  toq->queue = realloc (toq->queue, sizeof (PTINYOQUEUENODE)*size);
  toq->size = size;
}
void toq_resize ( PTINYOQUEUE toq , int size ) { toq -> queue = realloc ( toq -> queue , sizeof ( PTINYOQUEUENODE ) * size ) ; toq -> size = size ; }
works only if new size is >= old size
works only if new size is > = old size