passing array of strings to function in c