On Wed, Apr 25, 2007 at 08:40:47PM +0200, Manuel Bouyer wrote: > OK, I think I see how to use it. Does anyone knows the magic to > call a function at program startup, without calling it from main() ? As this is depending on GCC anyway, I bet -- try __attribute__((__constructor__)) Joerg