Ejemplo n.º 1
0
/*
 * parseCmdLine - parses the command line to see if there is an image to
 *                open right away.
 */
static void parseCmdLine( int count, char **cmdline )
{
    char        fname[ _MAX_PATH ];
    int         i;

    for( i=1; i < count; ++i ) {
        strcpy( fname, cmdline[i] );
        OpenFileOnStart( fname );
    }
} /* parseCmdLine */
Ejemplo n.º 2
0
/*
 * parseCmdLine - parse the command line to see if there is an image to open right away
 */
static void parseCmdLine( int count, char **cmdline )
{
    char        fname[_MAX_PATH];
    int         i;

    for( i = 1; i < count; i++ ) {
        if( stricmp( cmdline[i], DDE_OPT ) == 0 ) {
            continue;
        }
        if( stricmp( cmdline[i], NEW_OPT ) == 0 ) {
            continue;
        }
        if( stricmp( cmdline[i], NOTITLE_OPT ) == 0 ) {
            continue;
        }
        if( stricmp( cmdline[i], FUSION_OPT ) == 0 ) {
            continue;
        }
        strcpy( fname, cmdline[i] );
        OpenFileOnStart( fname );
    }

} /* parseCmdLine */