Ad
  • Custom User Avatar

    what is the "int* lg" for?

    int* lg is a pointer for returning the output array size.

    And how do I return the array at the end?

    Allocate memory, fill up the array with correct data, and return it.