Passing an array of structs
Hi I'm new to this forum. Sorry if how I present my problem is not the correct way.
What I'm trying to do is pass an array of structures to a function. Here is glimpse of the relevant parts of my code.
The other arguments work just fine. It's only when I call a part of a struct that I get an error. BTW I can't do anything that is C99 only (class rules ).
void manual_replace ( struct key *key_list, char *txt_p, int size); <-- prototype
int main (void)
struct key key_list;
manual_replace(key_list, text, text_size); <-- calling the function
void manual_replace ( struct key *key_list, char *txt_p, int size)
printf ("%c %d", txt_p, size);