I’ve encountered my dilemma on various parts(functions) in my program, to generalise
I’m taking two unit8_t[] arrays, chopping them up and reassembling them as a new array or printing the result.
As my program grows the combinations have got out of hand.
Thank you all very much!
I created some extra confusion by not showing that I do define my array sizes, some are of fixed length, some have a maximum size, I pass the actual length in both cases.
I was trying to simplify my problem and went too far, sorry!
As I press on I find I have one more related question...
How might I implement a similar approach with struct as mentioned above?
Ie
void function(struct_id){
// all variables inside this function read or write to //struct_id.data_id
}