In file bbsmod.h:

int mod_main

(int argc, char** argv)

Module entry point.

Documentation

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.

Parameters:
argc - the number of elements in the array argv, exactly like the argc argument of main(). In fact, you should pass main()'s argc here.
argv - a string array of command line arguments. Pass the argv argument of your main() function here.

Alphabetic index



This page was generated with the help of DOC++.