R
Ron Peterson (012ED25E)
I ran into something like the following while looking into how the GNU
MP library implements its mpz_t type.
typedef struct {
int len;
char *buf;
} foo[1];
This is an interesting technique. I'm unfamiliar with declaring the
name of a typedef as a one element array. Is this part of the C
standard? Is it portable? Does this technique have a name?
MP library implements its mpz_t type.
typedef struct {
int len;
char *buf;
} foo[1];
This is an interesting technique. I'm unfamiliar with declaring the
name of a typedef as a one element array. Is this part of the C
standard? Is it portable? Does this technique have a name?