[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.6.4 main: user supplied main procedure

You must supply a value for the main-text attribute. You may also supply a value for option-code. If you do, then the optionProcess invocation will not be emitted into the code. AutoOpts will wrap the text inside of:

 
int
main( int argc, char** argv )
{
    {
        int ct = optionProcess( &<<prog-name>>Options, argc, argv );
        argc -= ct;
        argv += ct;
    }
<<your text goes here>>
}

so you can most conveniently set the value with a "here string" (see section 2.2.7 A Here String):

 
code = <<- _EndOfMainProc_
	<<your text goes here>>
	_EndOfMainProc_;



This document was generated by Bruce Korb on October 24, 2004 using texi2html

Viewable With Any Browser   AutoGen Home