What is the correct syntax to declare a function foo() which receives an array of structure in function?