http://stackoverflow.com/questions/3613302/passing-array-of-structures-to-function-c