How does minicom able to run multiple mains?

Adam Lackorzynski adam at os.inf.tu-dresden.de
Fri Nov 28 07:53:53 UTC 2008


On Wed Nov 26, 2008 at 11:27:42 -0800, bshe wrote:
> I am very green on Linux programming.  As I reading through the
> Minicom 2.3 code, I couldn't stop wondering how it is able to run
> multiple int main(int argc, char **argv)s in minicom.c, ascii-xfr.c,
> getsdir.c, keyserv.c, script.c, and wildmat.c in its program.  As I
> remembered, a program can only have one main().  Am I wrong on this?
> 
> Can anyone enlighten me on this matter?

It's easy, they are there for different programs, not just one.


Adam
-- 
Adam                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/



More information about the minicom-devel mailing list