Passing A Struct Array Into A Function