Afficher un message
Vieux 15/04/2008, 16h11   #1
uidzer0
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Dynamically loop through array of structures

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?
  Réponse avec citation
 
Page generated in 0,04392 seconds with 9 queries