Module entry point.
Module entry point.This is the function that turns your program into a full-blown, well-behaved BBS module. It deals with command-line arguments, can identify itself (and you, its author), et cetera. You must use mod_setinfo() before calling mod_main().
The function never returns; it calls the entry point functions specified by your module's information block (mod_info_t) and exits. It also handles error reporting et cetera.