How do you update an array within a struct array using a function

I believe it's implementation-dependent.