Shutdown s3d library
#include <s3d.h>
int s3d_quit(void);
Closes the connection and clears the event-stack. It can also be used to leave the s3d_mainloop().
Simon Wunderlich
Author of s3d