list-array-conversions.h

Exposes conversion functiosn between arrays and lists.

  • Author: Edward Jones
  • Date: 2021-09-17

Source file

make_arr_from_list

Create an array from a list.

  • Param arr: Array to write to
  • Param l: List ot read
void make_arr_from_list(Array* arr, List* l);

make_list_from_arr

Create a list from an array. List myst be freed.

  • Param l: Pointer to the list to create
  • Param arr: Pointer to the array to copy
void make_list_from_arr(List* l, Array* arr);