U
uidzer0
Hey everyone,
I apologize in advance for this novice question however I'm not having
any luck finding the answer myself.
I'm attempting to loop through an array of structures passed to a
function, however I'm not sure how to obtain the number of elements in
the array.
The structure is defined as:
typedef struct {
time_t creation_date;
int priority;
char *text;
} note;
And here's the function prototype:
void get_notes(note *notes);
How would I dynamically loop through *notes?
I apologize in advance for this novice question however I'm not having
any luck finding the answer myself.
I'm attempting to loop through an array of structures passed to a
function, however I'm not sure how to obtain the number of elements in
the array.
The structure is defined as:
typedef struct {
time_t creation_date;
int priority;
char *text;
} note;
And here's the function prototype:
void get_notes(note *notes);
How would I dynamically loop through *notes?