1somestruct* somestruct_factory(/* per haps some initializer agrs? */)
2{
3 malloc some stuff
4 fill in some stuff
5 return pointer to malloced stuff
6}
7
8
9void somestruct_destructor(somestruct*)
10{
11 do cleanup stuff and also free pointer
12 free(somestruct);
13}