hi,

I'm looking for the best way to respresent the following type data.

<int val_1>, <int letter_1>, <bool flag_1>, <int val_2>, <int letter_2>, <bool flag_2>, ....... <int val_n>, <int letter_n>, <bool flag_n> where n can be upto any large integer value.

first I was thinking maybe use a varaible length array but maybe better would be to have an array of structures maybe like the following

typedef struct data
{
int val;
char letter;
bool flag;
} data_form;

data_form data_arr[];

I would like your expert opinion on pros and cons for this and is there a better way.

In extension to this I would to be able to encode and decode this type of data and I think this is possible thru the use of "rpc gen".

From reading RFC 1832 on web I know that you can have variable length arrays by use of " <> " for variable length.

It also states that you can have arrays of any types so I guess variable length array of type struct like above would be possible.

I would appreciate any comments.

thank you.