An array is not a pointer, but your approach to passing an array by value (embedding it in a struct) is undoubtedly the simplest way to do that.