memory alloc: add obstack example

Although obstacks are purely a GNU C library feature, they make
certain tasks much more convenient and easier to get right. malloc
is not the answer to everything.