Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!pilchuck!dataio!bright
From: bright@Data-IO.COM (Walter Bright)
Newsgroups: comp.lang.c
Subject: Re: want to know
Message-ID: <2091@dataio.Data-IO.COM>
Date: 11 Aug 89 20:10:40 GMT
References: <8487@bsu-cs.bsu.edu> <2980@solo9.cs.vu.nl> <182@sunquest.UUCP> <664@laic.UUCP>
Reply-To: bright@dataio.Data-IO.COM (Walter Bright)
Organization: Data I/O Corporation; Redmond, WA
Lines: 25

In article <664@laic.UUCP> darin@nova.UUCP (Darin Johnson) writes:
, roemer@cs.vu.nl (Roemer Lievaart) writes:
<< I always see that people
<< define the function 'main' in C-programs. Why is that? What should it return?
<< Can't I use another name?

Some point has to be the entry point for your program. It's convenient for
that one to be called 'main'. Main is simply a function called from the
startup object file linked in from the library that initializes the program.
You can use another name if you modify the startup code and reassemble it.