I am reading the RFC 4506 to understand the XDR data definition language.
It mentions that variable-length arrays are declared as follows.
type-name identifier<m>;
It also mentions that variable-length strings are declared as follows.
string object<m>;
Unfortunately, the only way it shows to have a variable length array of strings is a linked list, which seems very manual.
struct *stringlist {
string item<>;
stringlist next;
};
Is there a more simple or more correct way to declare a variable-length array of strings?