As I suspected, the interruptions resulted in incomplete and problematic code.
Fix copy and paste problems where modulus should instead be a slash (divide).
Use _increase_by functions rather than _resize functions to be more memory recycling friendly.
When processing parameters the index relative to the argv should be used.
Change the logic in the loops to increment "i" across all parameter values rather than the total sets.
Fix copy and paste mistakes where "wrap" is being incremented for non-wrap data.
The "--whole" parameter is not being processed and having the appropriate flag set.
The print function has incorrect ordering and structure of some of the functions called.
The print function is further simplified now that settings is passing the flag along.
The "wrap" append functions are not comparing against the correct variable (I swapped them by accident).
Do not do "register" types of optimizations at this point in time (this can be done far in the future when things are stable-ish).
Be sure to clear the lengths using memset().
The variable "k" can be moved inside the if condition following its assignment.