> Probably the best thing to do though, is just to export two methods: > void yourlib_startup(void); > void yourlib_close(void); In this interest of simplicity, portability, and maintainability, I would think this is indeed the way to go.