home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
530b.lha
/
AMenu_v1.3
/
_main.c
next >
Wrap
C/C++ Source or Header
|
1991-07-03
|
1KB
|
31 lines
/*********************************************************************\
** ________________________________ **
** A n t h o n y |________ __ __ ________| **
** | |o_| |o_| | **
** T h y s s e n __| __ __ |__ **
** __| __| | | |__ |__ **
** `` Dragon Computing ! '' __| __| | | |__ |__ **
** |_____| |__| |_____| **
** **
\*********************************************************************/
/* This is minimal startup sequence interface for a C program.
** Note the `__saveds' is used to get the complier to set the
** A4 Global Variable Register and `__asm' to read the CLI
** argument line handed to the program.
** NOTE:- This must be the first object linked, replacing
** "c.o" or "cback.o" also note that this program does NOT
** open "Dos.Library" nor does it reply to WB messages, so
** never ever run from the WorkBench or send it a message when
** `CreateProc()' is used.
** Also note the format of a main that accepts arguments.
*/
#include <proto/dos.h>
extern int main(unsigned long ArgLen, char *ArgLine);
void __saveds __asm
_main(register __d0 int ArgLen, register __a0 char *ArgLine)
{
Exit( main(ArgLen,ArgLine) );
}