Figured out the issue of ll_to_array adding a zero after every element, I also took your advise and modified my syntax to make sure that it is coherent with the C standards