Number one. If your passing a pointer to an array then your function should accept a pointer to an array.
int listrented(cars_t * cars2)
{
printf("Testing...\n");
/*shoud return something here*/
}
Number two. When you call a function, you don't declare the varibles
> if(choice == 3) listrented(cars_t cars[]);
/*should be*/
> if(choice == 3) listrented(cars);
gerard4143
Nearly a Posting Maven
2,295 posts since Jan 2008
Reputation Points: 512
Solved Threads: 397
Skill Endorsements: 0