Re: [GENERAL] Pointers in custom types

2009-02-21 Thread Will Harrower
Tom Lane wrote: Will Harrower writes: I'm writing a custom type in C that needs to manage two byte arrays (among other things). I have attempted to implement this using something similar to the following struct (along with corresponding input and output functions): typedef struc

Re: [GENERAL] Pointers in custom types

2009-02-21 Thread Tom Lane
Will Harrower writes: > I'm writing a custom type in C that needs to manage two byte arrays > (among other things). I have attempted to implement this using something > similar to the following struct (along with corresponding input and > output functions): > typedef struct example { > byt

[GENERAL] Pointers in custom types

2009-02-21 Thread Will Harrower
Hi, I'm writing a custom type in C that needs to manage two byte arrays (among other things). I have attempted to implement this using something similar to the following struct (along with corresponding input and output functions): typedef struct example { bytea* first; bytea* second;