Project

General

Profile

Statistics
| Branch: | Revision:

root / src / envir / main.cc @ a3be1d55

History | View | Annotate | Download (1.24 KB)

1 01873262 Georg Kunz
//==========================================================================
2
//  MAIN.CC - part of
3
//                     OMNeT++/OMNEST
4
//             Discrete System Simulation in C++
5
//
6
//  Function main()
7
//
8
//  Author: Andras Varga
9
//
10
//==========================================================================
11
12
/*--------------------------------------------------------------*
13
  Copyright (C) 1992-2008 Andras Varga
14
  Copyright (C) 2006-2008 OpenSim Ltd.
15

16
  This file is distributed WITHOUT ANY WARRANTY. See the file
17
  `license' for details on this and other legal matters.
18
*--------------------------------------------------------------*/
19
20
#include <stdio.h>
21
#include "cownedobject.h"
22
#include "envirdefs.h"
23
#include "startup.h"
24
#include "../common/ver.h"
25
26
USING_NAMESPACE
27
28
//
29
// The main() function
30
//
31
ENVIR_API int main(int argc, char *argv[])
32
{
33
    cStaticFlag dummy;
34
35
    printf(OMNETPP_PRODUCT " Discrete Event Simulation  (C) 1992-2010 Andras Varga, OpenSim Ltd.\n");
36
    printf("Version: " OMNETPP_VERSION_STR ", build: " OMNETPP_BUILDID ", edition: " OMNETPP_EDITION "\n");
37
    printf("See the license for distribution terms and warranty disclaimer\n");
38
39
    int exitcode = setupUserInterface(argc, argv);
40
41
    printf("\nEnd.\n");
42
43
    return exitcode;
44
}
45