I\'m having trouble passing an array of structs to a function in C.
I\'ve created the struct like this in main:
int main() { struct Items {
Instead of your declaration, declare in that way:
typedef struct { char code[10]; char description[30]; int stock; }Items;
and the function like that:
void ReadFile(Items *items);
With typedef you define a new type, so you don't need to use word "struct" each time.